Class: StarlarkCompiler::AST::FunctionCall

Inherits:
Node
  • Object
show all
Defined in:
lib/starlark_compiler/ast.rb

Constant Summary

Constants inherited from Node

Node::TYPE

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



138
139
140
# File 'lib/starlark_compiler/ast.rb', line 138

def args
  @args
end

#kwargsObject (readonly)

Returns the value of attribute kwargs.



138
139
140
# File 'lib/starlark_compiler/ast.rb', line 138

def kwargs
  @kwargs
end

#nameObject (readonly)

Returns the value of attribute name.



138
139
140
# File 'lib/starlark_compiler/ast.rb', line 138

def name
  @name
end