Class: MilkTea::AST::FunctionType
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::FunctionType
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(params:, return_type:, line: nil, column: nil) ⇒ FunctionType
constructor
A new instance of FunctionType.
Constructor Details
#initialize(params:, return_type:, line: nil, column: nil) ⇒ FunctionType
Returns a new instance of FunctionType.
46 |
# File 'lib/milk_tea/core/ast.rb', line 46 def initialize(params:, return_type:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
45 46 47 |
# File 'lib/milk_tea/core/ast.rb', line 45 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
45 46 47 |
# File 'lib/milk_tea/core/ast.rb', line 45 def line @line end |
#params ⇒ Object (readonly)
Returns the value of attribute params
45 46 47 |
# File 'lib/milk_tea/core/ast.rb', line 45 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
45 46 47 |
# File 'lib/milk_tea/core/ast.rb', line 45 def return_type @return_type end |