Class: Idl::BitfieldDefinitionSyntaxNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Idl::BitfieldDefinitionSyntaxNode
- Defined in:
- lib/idl/ast.rb
Instance Method Summary collapse
Instance Method Details
#to_ast ⇒ Object
1221 1222 1223 1224 1225 1226 1227 |
# File 'lib/idl/ast.rb', line 1221 def to_ast fields = [] e.elements.each do |f| fields << BitfieldFieldDefinitionAst.new(f.input, f.interval, f.field_name.text_value, f.range.int.to_ast, f.range.lsb.empty? ? nil : f.range.lsb.int.to_ast) end BitfieldDefinitionAst.new(input, interval, user_type_name.to_ast, int.to_ast, fields) end |