Class: MilkTea::AST::DeferStmt

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:, body:, line: nil, column: nil, length: nil) ⇒ DeferStmt

Returns a new instance of DeferStmt.



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

def initialize(expression:, 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



199
200
201
# File 'lib/milk_tea/core/ast.rb', line 199

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



199
200
201
# File 'lib/milk_tea/core/ast.rb', line 199

def column
  @column
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



199
200
201
# File 'lib/milk_tea/core/ast.rb', line 199

def expression
  @expression
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



199
200
201
# File 'lib/milk_tea/core/ast.rb', line 199

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



199
200
201
# File 'lib/milk_tea/core/ast.rb', line 199

def line
  @line
end