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