Class: Idl::CsrFieldReadExpressionSyntaxNode

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

Instance Method Summary collapse

Instance Method Details

#to_astObject



5820
5821
5822
5823
5824
5825
5826
# File 'lib/idl/ast.rb', line 5820

def to_ast
  if idx.respond_to?(:to_ast)
    CsrFieldReadExpressionAst.new(input, interval, idx.to_ast, csr_field_name.text_value)
  else
    CsrFieldReadExpressionAst.new(input, interval, idx.text_value, csr_field_name.text_value)
  end
end