Class: MilkTea::AST::StringLiteral
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::StringLiteral
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#cstring ⇒ Object
readonly
Returns the value of attribute cstring.
-
#lexeme ⇒ Object
readonly
Returns the value of attribute lexeme.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(lexeme:, value:, cstring: false, line: nil, column: nil) ⇒ StringLiteral
constructor
A new instance of StringLiteral.
Constructor Details
#initialize(lexeme:, value:, cstring: false, line: nil, column: nil) ⇒ StringLiteral
Returns a new instance of StringLiteral.
292 |
# File 'lib/milk_tea/core/ast.rb', line 292 def initialize(lexeme:, value:, cstring: false, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
291 292 293 |
# File 'lib/milk_tea/core/ast.rb', line 291 def column @column end |
#cstring ⇒ Object (readonly)
Returns the value of attribute cstring
291 292 293 |
# File 'lib/milk_tea/core/ast.rb', line 291 def cstring @cstring end |
#lexeme ⇒ Object (readonly)
Returns the value of attribute lexeme
291 292 293 |
# File 'lib/milk_tea/core/ast.rb', line 291 def lexeme @lexeme end |
#line ⇒ Object (readonly)
Returns the value of attribute line
291 292 293 |
# File 'lib/milk_tea/core/ast.rb', line 291 def line @line end |
#value ⇒ Object (readonly)
Returns the value of attribute value
291 292 293 |
# File 'lib/milk_tea/core/ast.rb', line 291 def value @value end |