Class: Idl::ArrayLiteralSyntaxNode
- Inherits:
-
SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- SyntaxNode
- Idl::ArrayLiteralSyntaxNode
- Defined in:
- lib/idlc/ast.rb
Instance Method Summary collapse
Methods inherited from Treetop::Runtime::SyntaxNode
#set_input_file, #set_input_file_unless_already_set, #space?
Instance Method Details
#to_ast ⇒ Object
5402 5403 5404 |
# File 'lib/idlc/ast.rb', line 5402 def to_ast ArrayLiteralAst.new(input, interval, [send(:first).to_ast] + send(:rest).elements.map { |r| r.expression.to_ast }) end |