Class: SystemRDL::Parser::Node

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#token_rangeObject (readonly)

Returns the value of attribute token_range.



6
7
8
# File 'lib/systemrdl/parser/node.rb', line 6

def token_range
  @token_range
end

Instance Method Details

#replace_token_range(token_range) ⇒ Object



12
13
14
# File 'lib/systemrdl/parser/node.rb', line 12

def replace_token_range(token_range)
  updated(nil, nil, { token_range: token_range })
end

#replace_type(type) ⇒ Object



8
9
10
# File 'lib/systemrdl/parser/node.rb', line 8

def replace_type(type)
  updated(type, nil, nil)
end