class Malady::AST::FunctionCallNode

Attributes

arguments[R]
function[R]

Public Class Methods

new(filename, line, function, arguments) click to toggle source
Calls superclass method Malady::AST::Node::new
# File lib/malady/ast.rb, line 281
def initialize(filename, line, function, arguments)
  super
  @function = function
  @arguments = arguments
end

Public Instance Methods

bytecode(g) click to toggle source
# File lib/malady/ast.rb, line 287
def bytecode(g)
  function.bytecode(g)

  @arguments.each do |val|
    val.bytecode(g)
  end

  g.send :call, @arguments.count
end