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.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#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, column: nil) ⇒ ForeignFunctionDecl
constructor
A new instance of ForeignFunctionDecl.
Constructor Details
#initialize(name:, type_params:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil, column: nil) ⇒ ForeignFunctionDecl
Returns a new instance of ForeignFunctionDecl.
130 |
# File 'lib/milk_tea/core/ast.rb', line 130 def initialize(name:, type_params:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil, column: nil) = super |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def attributes @attributes end |
#column ⇒ Object (readonly)
Returns the value of attribute column
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def line @line end |
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def mapping @mapping end |
#name ⇒ Object (readonly)
Returns the value of attribute name
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def return_type @return_type end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def type_params @type_params end |
#variadic ⇒ Object (readonly)
Returns the value of attribute variadic
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def variadic @variadic end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
129 130 131 |
# File 'lib/milk_tea/core/ast.rb', line 129 def visibility @visibility end |