Class: WLang::Compiler::ProcCallRemoval

Inherits:
Filter
  • Object
show all
Defined in:
lib/wlang/compiler/proc_call_removal.rb

Instance Method Summary collapse

Methods included from Filter::ClassMethods

#recurse_on

Methods included from Filter::InstanceMethods

#recurse

Instance Method Details

#on_fn(core) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/wlang/compiler/proc_call_removal.rb', line 5

def on_fn(core)
  if core.first == :static
    [:arg, core.last]
  else
    [:fn, call(core)]
  end
end