Class: MilkTea::AST::UnionDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::UnionDecl
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#c_name ⇒ Object
readonly
Returns the value of attribute c_name.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(name:, c_name:, fields:, visibility:, attributes: [], line: nil, column: nil) ⇒ UnionDecl
constructor
A new instance of UnionDecl.
Constructor Details
#initialize(name:, c_name:, fields:, visibility:, attributes: [], line: nil, column: nil) ⇒ UnionDecl
Returns a new instance of UnionDecl.
82 |
# File 'lib/milk_tea/core/ast.rb', line 82 def initialize(name:, c_name:, fields:, visibility:, attributes: [], line: nil, column: nil) = super |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def attributes @attributes end |
#c_name ⇒ Object (readonly)
Returns the value of attribute c_name
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def c_name @c_name end |
#column ⇒ Object (readonly)
Returns the value of attribute column
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def column @column end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def fields @fields end |
#line ⇒ Object (readonly)
Returns the value of attribute line
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def name @name end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
81 82 83 |
# File 'lib/milk_tea/core/ast.rb', line 81 def visibility @visibility end |