Class: MilkTea::AST::UnsafeStmt

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) ⇒ UnsafeStmt

Returns a new instance of UnsafeStmt.



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

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



155
156
157
# File 'lib/milk_tea/core/ast.rb', line 155

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



155
156
157
# File 'lib/milk_tea/core/ast.rb', line 155

def column
  @column
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



155
156
157
# File 'lib/milk_tea/core/ast.rb', line 155

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



155
156
157
# File 'lib/milk_tea/core/ast.rb', line 155

def line
  @line
end