Class: MilkTea::AST::PrefixCast
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::PrefixCast
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#target_type ⇒ Object
readonly
Returns the value of attribute target_type.
Instance Method Summary collapse
-
#initialize(target_type:, expression:, line: nil, column: nil, length: nil) ⇒ PrefixCast
constructor
A new instance of PrefixCast.
Constructor Details
#initialize(target_type:, expression:, line: nil, column: nil, length: nil) ⇒ PrefixCast
Returns a new instance of PrefixCast.
255 |
# File 'lib/milk_tea/core/ast.rb', line 255 def initialize(target_type:, expression:, line: nil, column: nil, length: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
254 255 256 |
# File 'lib/milk_tea/core/ast.rb', line 254 def column @column end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
254 255 256 |
# File 'lib/milk_tea/core/ast.rb', line 254 def expression @expression end |
#length ⇒ Object (readonly)
Returns the value of attribute length
254 255 256 |
# File 'lib/milk_tea/core/ast.rb', line 254 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
254 255 256 |
# File 'lib/milk_tea/core/ast.rb', line 254 def line @line end |
#target_type ⇒ Object (readonly)
Returns the value of attribute target_type
254 255 256 |
# File 'lib/milk_tea/core/ast.rb', line 254 def target_type @target_type end |