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.
112 |
# File 'lib/milk_tea/core/ast.rb', line 112 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
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def async @async end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def attributes @attributes end |
#body ⇒ Object (readonly)
Returns the value of attribute body
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def body @body end |
#column ⇒ Object (readonly)
Returns the value of attribute column
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def column @column end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def kind @kind end |
#line ⇒ Object (readonly)
Returns the value of attribute line
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def return_type @return_type end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def type_params @type_params end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
111 112 113 |
# File 'lib/milk_tea/core/ast.rb', line 111 def visibility @visibility end |