Class: Idl::MultiVariableDeclarationSyntaxNode

Inherits:
SyntaxNode show all
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_astObject



3544
3545
3546
# File 'lib/idlc/ast.rb', line 3544

def to_ast
  MultiVariableDeclarationAst.new(input, interval, send(:type_name).to_ast, [send(:first).to_ast] + send(:rest).elements.map { |r| r.id.to_ast })
end