Class: Solargraph::SourceMap::NodeProcessor::Base

Inherits:
Object
  • Object
show all
Includes:
Solargraph::Source::NodeMethods
Defined in:
lib/solargraph/source_map/node_processor/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Solargraph::Source::NodeMethods

const_from, drill_signature, get_node_end_position, get_node_start_position, infer_literal_node_type, pack_name, resolve_node_signature, returns_from, unpack_name

Constructor Details

#initialize(node, region, pins, locals) ⇒ Base


22
23
24
25
26
27
# File 'lib/solargraph/source_map/node_processor/base.rb', line 22

def initialize node, region, pins, locals
  @node = node
  @region = region
  @pins = pins
  @locals = locals
end

Instance Attribute Details

#localsArray<Pin::Base> (readonly)


17
18
19
# File 'lib/solargraph/source_map/node_processor/base.rb', line 17

def locals
  @locals
end

#nodeParser::AST::Node (readonly)


8
9
10
# File 'lib/solargraph/source_map/node_processor/base.rb', line 8

def node
  @node
end

#pinsArray<Pin::Base> (readonly)


14
15
16
# File 'lib/solargraph/source_map/node_processor/base.rb', line 14

def pins
  @pins
end

#regionRegion (readonly)


11
12
13
# File 'lib/solargraph/source_map/node_processor/base.rb', line 11

def region
  @region
end