Class: MilkTea::AST::OffsetofExpr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, field:, line: nil, column: nil) ⇒ OffsetofExpr

Returns a new instance of OffsetofExpr.



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

def initialize(type:, field:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



282
283
284
# File 'lib/milk_tea/core/ast.rb', line 282

def column
  @column
end

#fieldObject (readonly)

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



282
283
284
# File 'lib/milk_tea/core/ast.rb', line 282

def field
  @field
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



282
283
284
# File 'lib/milk_tea/core/ast.rb', line 282

def line
  @line
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



282
283
284
# File 'lib/milk_tea/core/ast.rb', line 282

def type
  @type
end