Class: Foxtail::Syntax::Parser::AST::CallArguments
- Inherits:
-
SyntaxNode
- Object
- BaseNode
- SyntaxNode
- Foxtail::Syntax::Parser::AST::CallArguments
- Defined in:
- lib/foxtail/syntax/parser/ast/call_arguments.rb
Overview
Represents function call arguments (both positional and named)
Instance Attribute Summary collapse
-
#named ⇒ Object
Returns the value of attribute named.
-
#positional ⇒ Object
Returns the value of attribute positional.
Attributes inherited from SyntaxNode
Attributes inherited from BaseNode
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(positional = [], named = []) ⇒ CallArguments
constructor
A new instance of CallArguments.
Methods inherited from SyntaxNode
Methods inherited from BaseNode
Constructor Details
#initialize(positional = [], named = []) ⇒ CallArguments
Returns a new instance of CallArguments.
12 13 14 15 16 |
# File 'lib/foxtail/syntax/parser/ast/call_arguments.rb', line 12 def initialize(positional=[], named=[]) super() @positional = positional @named = named end |
Instance Attribute Details
#named ⇒ Object
Returns the value of attribute named.
10 11 12 |
# File 'lib/foxtail/syntax/parser/ast/call_arguments.rb', line 10 def named @named end |
#positional ⇒ Object
Returns the value of attribute positional.
9 10 11 |
# File 'lib/foxtail/syntax/parser/ast/call_arguments.rb', line 9 def positional @positional end |
Instance Method Details
#children ⇒ Object
18 |
# File 'lib/foxtail/syntax/parser/ast/call_arguments.rb', line 18 def children = [*positional, *named] |