Class: MilkTea::AST::ProcType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params:, return_type:, line: nil, column: nil) ⇒ ProcType

Returns a new instance of ProcType.



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

def initialize(params:, return_type:, line: nil, column: 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

#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

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



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

def params
  @params
end

#return_typeObject (readonly)

Returns the value of attribute return_type

Returns:

  • (Object)

    the current value of return_type



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

def return_type
  @return_type
end