Class: Citrus::Def
Instance Method Summary collapse
Instance Method Details
#codegen(g) ⇒ Object
107 108 109 110 111 112 113 114 |
# File 'lib/citrus/nodes.rb', line 107 def codegen(g) args = arglist.args.map do |arg| [arg.var.value, arg.default.nil? ? nil : arg.default.codegen(g)] end g.function(func.value, args) do |gf| expressions.each { |e| e.codegen(gf) } end end |