Class: MilkTea::AST::PrefixCast

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



254
255
256
# File 'lib/milk_tea/core/ast.rb', line 254

def column
  @column
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



254
255
256
# File 'lib/milk_tea/core/ast.rb', line 254

def expression
  @expression
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



254
255
256
# File 'lib/milk_tea/core/ast.rb', line 254

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



254
255
256
# File 'lib/milk_tea/core/ast.rb', line 254

def line
  @line
end

#target_typeObject (readonly)

Returns the value of attribute target_type

Returns:

  • (Object)

    the current value of target_type



254
255
256
# File 'lib/milk_tea/core/ast.rb', line 254

def target_type
  @target_type
end