Sha256: a308769843ac315aa6324083b75b38a6d5b4cf82c401eecb7329ec8eaf29a917

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

module Phlex
	class Compiler
		module Visitors
			class File < BaseVisitor
				visit_method def visit_class(node)
					if node.location.start_line == @compiler.line
						Visitors::Component.new(@compiler).visit_all(node.child_nodes)
					else
						super
					end
				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/file.rb
phlex-0.3.2 lib/phlex/compiler/visitors/file.rb
phlex-0.3.1 lib/phlex/compiler/visitors/file.rb
phlex-0.3.0 lib/phlex/compiler/visitors/file.rb