Class: MilkTea::AST::StructDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::StructDecl
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#alignment ⇒ Object
readonly
Returns the value of attribute alignment.
-
#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.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#implements ⇒ Object
readonly
Returns the value of attribute implements.
-
#lifetime_params ⇒ Object
readonly
Returns the value of attribute lifetime_params.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nested_types ⇒ Object
readonly
Returns the value of attribute nested_types.
-
#packed ⇒ Object
readonly
Returns the value of attribute packed.
-
#type_params ⇒ Object
readonly
Returns the value of attribute type_params.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(name:, type_params:, implements:, c_name:, fields:, events: [], nested_types: [], attributes: [], packed:, alignment:, visibility:, lifetime_params: [], line: nil, column: nil) ⇒ StructDecl
constructor
A new instance of StructDecl.
Constructor Details
#initialize(name:, type_params:, implements:, c_name:, fields:, events: [], nested_types: [], attributes: [], packed:, alignment:, visibility:, lifetime_params: [], line: nil, column: nil) ⇒ StructDecl
Returns a new instance of StructDecl.
79 |
# File 'lib/milk_tea/core/ast.rb', line 79 def initialize(name:, type_params:, implements:, c_name:, fields:, events: [], nested_types: [], attributes: [], packed:, alignment:, visibility:, lifetime_params: [], line: nil, column: nil) = super |
Instance Attribute Details
#alignment ⇒ Object (readonly)
Returns the value of attribute alignment
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def alignment @alignment end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def attributes @attributes end |
#c_name ⇒ Object (readonly)
Returns the value of attribute c_name
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def c_name @c_name end |
#column ⇒ Object (readonly)
Returns the value of attribute column
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def column @column end |
#events ⇒ Object (readonly)
Returns the value of attribute events
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def events @events end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def fields @fields end |
#implements ⇒ Object (readonly)
Returns the value of attribute implements
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def implements @implements end |
#lifetime_params ⇒ Object (readonly)
Returns the value of attribute lifetime_params
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def lifetime_params @lifetime_params end |
#line ⇒ Object (readonly)
Returns the value of attribute line
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def name @name end |
#nested_types ⇒ Object (readonly)
Returns the value of attribute nested_types
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def nested_types @nested_types end |
#packed ⇒ Object (readonly)
Returns the value of attribute packed
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def packed @packed end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def type_params @type_params end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
78 79 80 |
# File 'lib/milk_tea/core/ast.rb', line 78 def visibility @visibility end |