Class: MilkTea::AST::UnsafeExpr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, line: nil, column: nil, length: nil) ⇒ UnsafeExpr

Returns a new instance of UnsafeExpr.



234
# File 'lib/milk_tea/core/ast.rb', line 234

def initialize(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



233
234
235
# File 'lib/milk_tea/core/ast.rb', line 233

def column
  @column
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



233
234
235
# File 'lib/milk_tea/core/ast.rb', line 233

def expression
  @expression
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



233
234
235
# File 'lib/milk_tea/core/ast.rb', line 233

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



233
234
235
# File 'lib/milk_tea/core/ast.rb', line 233

def line
  @line
end