Class: StarlarkCompiler::AST::FunctionCall
- Defined in:
- lib/starlark_compiler/ast.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#kwargs ⇒ Object
readonly
Returns the value of attribute kwargs.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, *args, **kwargs) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
Constructor Details
#initialize(name, *args, **kwargs) ⇒ FunctionCall
Returns a new instance of FunctionCall.
139 140 141 142 143 |
# File 'lib/starlark_compiler/ast.rb', line 139 def initialize(name, *args, **kwargs) @name = name @args = args.map(&method(:node)) @kwargs = kwargs.transform_values(&method(:node)) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
138 139 140 |
# File 'lib/starlark_compiler/ast.rb', line 138 def args @args end |
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
138 139 140 |
# File 'lib/starlark_compiler/ast.rb', line 138 def kwargs @kwargs end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
138 139 140 |
# File 'lib/starlark_compiler/ast.rb', line 138 def name @name end |