Class: MilkTea::AST::MethodDef
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::MethodDef
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#async ⇒ Object
readonly
Returns the value of attribute async.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
-
#type_params ⇒ Object
readonly
Returns the value of attribute type_params.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(name:, type_params:, params:, return_type:, body:, kind:, visibility:, async:, attributes: [], line: nil, column: nil) ⇒ MethodDef
constructor
A new instance of MethodDef.
Constructor Details
#initialize(name:, type_params:, params:, return_type:, body:, kind:, visibility:, async:, attributes: [], line: nil, column: nil) ⇒ MethodDef
Returns a new instance of MethodDef.
124 |
# File 'lib/milk_tea/core/ast.rb', line 124 def initialize(name:, type_params:, params:, return_type:, body:, kind:, visibility:, async:, attributes: [], line: nil, column: nil) = super |
Instance Attribute Details
#async ⇒ Object (readonly)
Returns the value of attribute async
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def async @async end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def attributes @attributes end |
#body ⇒ Object (readonly)
Returns the value of attribute body
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def body @body end |
#column ⇒ Object (readonly)
Returns the value of attribute column
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def column @column end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def kind @kind end |
#line ⇒ Object (readonly)
Returns the value of attribute line
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def return_type @return_type end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def type_params @type_params end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
123 124 125 |
# File 'lib/milk_tea/core/ast.rb', line 123 def visibility @visibility end |