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