Class: Solargraph::Parser::ParserGem::NodeProcessors::IfNode
- Inherits:
-
NodeProcessor::Base
- Object
- NodeProcessor::Base
- Solargraph::Parser::ParserGem::NodeProcessors::IfNode
- Defined in:
- lib/solargraph/parser/parser_gem/node_processors/if_node.rb
Constant Summary
Constants included from Solargraph::Parser::ParserGem::NodeMethods
Solargraph::Parser::ParserGem::NodeMethods::NIL_NODE
Instance Attribute Summary
Attributes inherited from NodeProcessor::Base
#locals, #node, #pins, #region
Instance Method Summary collapse
Methods included from Solargraph::Parser::ParserGem::NodeMethods
any_splatted_call?, call_nodes_from, const_nodes_from, convert_hash, drill_signature, find_recipient_node, get_node_end_position, get_node_start_position, infer_literal_node_type, pack_name, repaired_find_recipient_node, returns_from_method_body, splatted_call?, splatted_hash?, unpack_name, value_position_nodes_only
Methods inherited from NodeProcessor::Base
Constructor Details
This class inherits a constructor from Solargraph::Parser::NodeProcessor::Base
Instance Method Details
#process ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/solargraph/parser/parser_gem/node_processors/if_node.rb', line 10 def process process_children position = get_node_start_position(node) enclosing_breakable_pin = pins.select{|pin| pin.is_a?(Pin::Breakable) && pin.location.range.contain?(position)}.last FlowSensitiveTyping.new(locals, enclosing_breakable_pin).process_if(node) end |