Class: SystemRDL::Parser::Node
- Inherits:
-
AST::Node
- Object
- AST::Node
- SystemRDL::Parser::Node
- Defined in:
- lib/systemrdl/parser/node.rb
Instance Attribute Summary collapse
-
#token_range ⇒ Object
readonly
Returns the value of attribute token_range.
Instance Method Summary collapse
Instance Attribute Details
#token_range ⇒ Object (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 |