abstract class Node
- Node
- Reference
- Object
Overview
Base class for all AST nodes. Each node implements visit(value) directly, using polymorphism instead of a central visitor dispatcher.
Direct Known Subclasses
- AndExpressionNode
- ComparatorNode
- CurrentNode
- ExprefNode
- FieldNode
- FilterProjectionNode
- FlattenNode
- FunctionExpressionNode
- IdentityNode
- IndexExpressionNode
- IndexNode
- KeyValPairNode
- LiteralNode
- MultiSelectHashNode
- MultiSelectListNode
- NotExpressionNode
- OrExpressionNode
- PipeNode
- ProjectionNode
- SliceNode
- SubexpressionNode
- ValueProjectionNode
Defined in:
nodes.crInstance Method Summary
- #children : Array(Node)
-
#type : String
Introspection methods for testing/debugging
- #value : Char | Int32 | String | Nil
- #visit(v : JSON::Any) : JSON::Any