Class: Foxtail::Syntax::Parser::AST::SyntaxNode
- Defined in:
- lib/foxtail/syntax/parser/ast/syntax_node.rb
Overview
Base class for AST nodes that can have span information Extends BaseNode with source position tracking capabilities
Direct Known Subclasses
Annotation, Attribute, BaseComment, BaseLiteral, CallArguments, FunctionReference, Identifier, Junk, Message, MessageReference, NamedArgument, Pattern, Placeable, Resource, SelectExpression, Term, TermReference, TextElement, VariableReference, Variant
Instance Attribute Summary collapse
-
#span ⇒ Object
Returns the value of attribute span.
Attributes inherited from BaseNode
Instance Method Summary collapse
-
#add_span(start_pos, end_pos) ⇒ Object
Add span information to this syntax node.
Methods inherited from BaseNode
#==, #accept, #children, #initialize, #to_h
Constructor Details
This class inherits a constructor from Foxtail::Syntax::Parser::AST::BaseNode
Instance Attribute Details
#span ⇒ Object
Returns the value of attribute span.
10 11 12 |
# File 'lib/foxtail/syntax/parser/ast/syntax_node.rb', line 10 def span @span end |