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