Sha256: 016685e93a0c4a8e18b4be610b777e61054a67779045b13d8af41ddc848e7d57

Contents?: true

Size: 287 Bytes

Versions: 15

Compression:

Stored size: 287 Bytes

Contents

module WLang
  class Compiler
    class ProcCallRemoval < Filter

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

    end # class ProcCallRemoval
  end # class Compiler
end # module WLang

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wlang-3.0.1 lib/wlang/compiler/proc_call_removal.rb
wlang-3.0.0 lib/wlang/compiler/proc_call_removal.rb
wlang-2.3.1 lib/wlang/compiler/proc_call_removal.rb
wlang-2.3.0 lib/wlang/compiler/proc_call_removal.rb
wlang-2.2.4 lib/wlang/compiler/proc_call_removal.rb
wlang-2.2.3 lib/wlang/compiler/proc_call_removal.rb
wlang-2.2.2 lib/wlang/compiler/proc_call_removal.rb
wlang-2.2.1 lib/wlang/compiler/proc_call_removal.rb
wlang-2.2.0 lib/wlang/compiler/proc_call_removal.rb
wlang-2.1.2 lib/wlang/compiler/proc_call_removal.rb
wlang-2.1.1 lib/wlang/compiler/proc_call_removal.rb
wlang-2.1.0 lib/wlang/compiler/proc_call_removal.rb
wlang-2.0.1 lib/wlang/compiler/proc_call_removal.rb
wlang-2.0.0 lib/wlang/compiler/proc_call_removal.rb
wlang-2.0.0.beta lib/wlang/compiler/proc_call_removal.rb