Class: MilkTea::AST::EmitStmt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(declaration:, line: nil, column: nil) ⇒ EmitStmt

Returns a new instance of EmitStmt.



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

def initialize(declaration:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



161
162
163
# File 'lib/milk_tea/core/ast.rb', line 161

def column
  @column
end

#declarationObject (readonly)

Returns the value of attribute declaration

Returns:

  • (Object)

    the current value of declaration



161
162
163
# File 'lib/milk_tea/core/ast.rb', line 161

def declaration
  @declaration
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



161
162
163
# File 'lib/milk_tea/core/ast.rb', line 161

def line
  @line
end