Class: Idl::StructDefinitionSyntaxNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Idl::StructDefinitionSyntaxNode
- Defined in:
- lib/idl/ast.rb
Instance Method Summary collapse
Instance Method Details
#to_ast ⇒ Object
1343 1344 1345 1346 1347 1348 1349 1350 1351 |
# File 'lib/idl/ast.rb', line 1343 def to_ast member_types = [] member_names = [] member.elements.each do |m| member_types << m.type_name.to_ast member_names << m.id.text_value end StructDefinitionAst.new(input, interval, user_type_name.text_value, member_types, member_names) end |