Sha256: ce7e0b03ba52a86148279413b1553674565bbe256d201031eda74e981d5848f2

Contents?: true

Size: 467 Bytes

Versions: 4

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

module Phlex
	class Compiler
		module Visitors
			class ComponentMethod < BaseVisitor
				def optimized_something?
					!!@optimized_something
				end

				visit_method def visit_vcall(node)
					@optimized_something = Optimizers::VCall.new(node,
						compiler: @compiler).call

					super
				end

				visit_method def visit_class(node)
					nil
				end

				visit_method def visit_module(node)
					nil
				end
			end
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phlex-0.4.0 lib/phlex/compiler/visitors/component_method.rb
phlex-0.3.2 lib/phlex/compiler/visitors/component_method.rb
phlex-0.3.1 lib/phlex/compiler/visitors/component_method.rb
phlex-0.3.0 lib/phlex/compiler/visitors/component_method.rb