Class: MilkTea::AST::VarDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::VarDecl
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#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:, visibility:, line: nil, column: nil) ⇒ VarDecl
constructor
A new instance of VarDecl.
Constructor Details
#initialize(name:, type:, value:, visibility:, line: nil, column: nil) ⇒ VarDecl
Returns a new instance of VarDecl.
64 |
# File 'lib/milk_tea/core/ast.rb', line 64 def initialize(name:, type:, value:, visibility:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
63 64 65 |
# File 'lib/milk_tea/core/ast.rb', line 63 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
63 64 65 |
# File 'lib/milk_tea/core/ast.rb', line 63 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
63 64 65 |
# File 'lib/milk_tea/core/ast.rb', line 63 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
63 64 65 |
# File 'lib/milk_tea/core/ast.rb', line 63 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
63 64 65 |
# File 'lib/milk_tea/core/ast.rb', line 63 def value @value end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
63 64 65 |
# File 'lib/milk_tea/core/ast.rb', line 63 def visibility @visibility end |