Class: MilkTea::AST::ProcExpr

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:, body:, line: nil, column: nil) ⇒ ProcExpr

Returns a new instance of ProcExpr.



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

def initialize(params:, return_type:, body:, line: nil, column: nil) = super

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



270
271
272
# File 'lib/milk_tea/core/ast.rb', line 270

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



270
271
272
# File 'lib/milk_tea/core/ast.rb', line 270

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



270
271
272
# File 'lib/milk_tea/core/ast.rb', line 270

def line
  @line
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



270
271
272
# File 'lib/milk_tea/core/ast.rb', line 270

def params
  @params
end

#return_typeObject (readonly)

Returns the value of attribute return_type

Returns:

  • (Object)

    the current value of return_type



270
271
272
# File 'lib/milk_tea/core/ast.rb', line 270

def return_type
  @return_type
end