Class: Parser::AST::Node

Inherits:
AST::Node
  • Object
show all
Defined in:
lib/parser/ast/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#source_mapObject (readonly) Also known as: src

Returns the value of attribute source_map.



5
6
7
# File 'lib/parser/ast/node.rb', line 5

def source_map
  @source_map
end

Instance Method Details

#assign_properties(properties) ⇒ Object



9
10
11
12
13
# File 'lib/parser/ast/node.rb', line 9

def assign_properties(properties)
  if (source_map = properties[:source_map])
    @source_map = source_map
  end
end