Class: MilkTea::AST::DynType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface:, nullable: false, line: nil, column: nil, length: nil) ⇒ DynType

Returns a new instance of DynType.



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

def initialize(interface:, nullable: false, line: nil, column: nil, length: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



48
49
50
# File 'lib/milk_tea/core/ast.rb', line 48

def column
  @column
end

#interfaceObject (readonly)

Returns the value of attribute interface

Returns:

  • (Object)

    the current value of interface



48
49
50
# File 'lib/milk_tea/core/ast.rb', line 48

def interface
  @interface
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



48
49
50
# File 'lib/milk_tea/core/ast.rb', line 48

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



48
49
50
# File 'lib/milk_tea/core/ast.rb', line 48

def line
  @line
end

#nullableObject (readonly)

Returns the value of attribute nullable

Returns:

  • (Object)

    the current value of nullable



48
49
50
# File 'lib/milk_tea/core/ast.rb', line 48

def nullable
  @nullable
end