Class: Idl::VariableDeclarationWithInitializationSyntaxNode

Inherits:
Treetop::Runtime::SyntaxNode show all
Defined in:
lib/idl/ast.rb

Instance Method Summary collapse

Instance Method Details

#to_astObject



2335
2336
2337
2338
2339
2340
2341
# File 'lib/idl/ast.rb', line 2335

def to_ast
  ary_size_ast = ary_size.empty? ? nil : ary_size.expression.to_ast
  VariableDeclarationWithInitializationAst.new(
    input, interval,
    type_name.to_ast, id.to_ast, ary_size_ast, rval.to_ast
  )
end