Class: Optimize::NoopPass

Inherits:
Pass
  • Object
show all
Defined in:
lib/optimize/pass.rb

Overview

Pass that does nothing. Used to exercise the pipeline without depending on real passes.

Instance Method Summary collapse

Methods inherited from Pass

#one_shot?

Instance Method Details

#apply(function, type_env:, log:, object_table: nil, **_extras) ⇒ Object



30
31
32
# File 'lib/optimize/pass.rb', line 30

def apply(function, type_env:, log:, object_table: nil, **_extras)
  # Intentionally empty.
end

#nameObject



34
35
36
# File 'lib/optimize/pass.rb', line 34

def name
  :noop
end