Class: MilkTea::AST::ForeignFunctionDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::ForeignFunctionDecl
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#mapping ⇒ Object
readonly
Returns the value of attribute mapping.
-
#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.
-
#variadic ⇒ Object
readonly
Returns the value of attribute variadic.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(name:, type_params:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil) ⇒ ForeignFunctionDecl
constructor
A new instance of ForeignFunctionDecl.
Constructor Details
#initialize(name:, type_params:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil) ⇒ ForeignFunctionDecl
Returns a new instance of ForeignFunctionDecl.
118 |
# File 'lib/milk_tea/core/ast.rb', line 118 def initialize(name:, type_params:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil) = super |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def attributes @attributes end |
#line ⇒ Object (readonly)
Returns the value of attribute line
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def line @line end |
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def mapping @mapping end |
#name ⇒ Object (readonly)
Returns the value of attribute name
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def return_type @return_type end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def type_params @type_params end |
#variadic ⇒ Object (readonly)
Returns the value of attribute variadic
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def variadic @variadic end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
117 118 119 |
# File 'lib/milk_tea/core/ast.rb', line 117 def visibility @visibility end |