Class: MilkTea::AST::ErrorExpr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line: nil, column: nil, length: nil, message: nil) ⇒ ErrorExpr

Returns a new instance of ErrorExpr.



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

def initialize(line: nil, column: nil, length: nil, message: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



208
209
210
# File 'lib/milk_tea/core/ast.rb', line 208

def column
  @column
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



208
209
210
# File 'lib/milk_tea/core/ast.rb', line 208

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



208
209
210
# File 'lib/milk_tea/core/ast.rb', line 208

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



208
209
210
# File 'lib/milk_tea/core/ast.rb', line 208

def message
  @message
end