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