Class: MilkTea::AST::ErrorBlockStmt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body:, line: nil, column: nil, length: nil, message: nil, header_type: nil, header_expression: nil, header_bindings: nil, header_iterables: nil) ⇒ ErrorBlockStmt

Returns a new instance of ErrorBlockStmt.



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

def initialize(body:, line: nil, column: nil, length: nil, message: nil, header_type: nil, header_expression: nil, header_bindings: nil, header_iterables: nil) = super

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def column
  @column
end

#header_bindingsObject (readonly)

Returns the value of attribute header_bindings

Returns:

  • (Object)

    the current value of header_bindings



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def header_bindings
  @header_bindings
end

#header_expressionObject (readonly)

Returns the value of attribute header_expression

Returns:

  • (Object)

    the current value of header_expression



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def header_expression
  @header_expression
end

#header_iterablesObject (readonly)

Returns the value of attribute header_iterables

Returns:

  • (Object)

    the current value of header_iterables



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def header_iterables
  @header_iterables
end

#header_typeObject (readonly)

Returns the value of attribute header_type

Returns:

  • (Object)

    the current value of header_type



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def header_type
  @header_type
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



202
203
204
# File 'lib/milk_tea/core/ast.rb', line 202

def message
  @message
end