Skip to content

Commit 75fbae3

Browse files
committed
Clean up
1 parent 138cc70 commit 75fbae3

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

lib/phlex/compiler.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ module Phlex::Compiler
77
MAP = {}
88
Error = Class.new(StandardError)
99

10+
Concat = Data.define(:node) do
11+
def start_line = nil
12+
def accept(visitor) = self
13+
end
14+
1015
def self.compile(component)
1116
path, line = Object.const_source_location(component.name)
1217
compile_file(path)
@@ -47,8 +52,6 @@ def self.compile_file(path)
4752

4853
MAP[path] = formatting_result.source_map
4954

50-
puts formatting_result.source
51-
5255
eval("# frozen_string_literal: true\n#{formatting_result.source}", TOPLEVEL_BINDING, path, starting_line - 1)
5356
end
5457
end

lib/phlex/compiler/method_compiler.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
require "prism"
44

55
module Phlex::Compiler
6-
Concat = Data.define(:node) do
7-
def start_line = nil
8-
def accept(visitor) = self
9-
end
10-
116
class MethodCompiler < Refract::MutationVisitor
127
def initialize(component)
138
super()

0 commit comments

Comments
 (0)