lib/phlex/compiler/visitors/file.rb



# 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