Class: MilkTea::AST::TypeParam

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, constraints: [], line: nil, column: nil, length: nil) ⇒ TypeParam

Returns a new instance of TypeParam.



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

def initialize(name:, constraints: [], 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



16
17
18
# File 'lib/milk_tea/core/ast.rb', line 16

def column
  @column
end

#constraintsObject (readonly)

Returns the value of attribute constraints

Returns:

  • (Object)

    the current value of constraints



16
17
18
# File 'lib/milk_tea/core/ast.rb', line 16

def constraints
  @constraints
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



16
17
18
# File 'lib/milk_tea/core/ast.rb', line 16

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



16
17
18
# File 'lib/milk_tea/core/ast.rb', line 16

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/milk_tea/core/ast.rb', line 16

def name
  @name
end