Skip to content

Commit d52aaa7

Browse files
committed
Fix merge mishap
Caused by #3478 and #3443 I also made the builder reference more explicit to clearly distinquish between `::Parser` and `Prism::Translation::Parser`
1 parent 35dceb5 commit d52aaa7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/prism/translation/parser.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ def initialize(message, level, reason, location)
3131
end
3232
end
3333

34-
# Create the parser with our custom builder class
35-
def initialize(builder = Parser::Builder.new)
36-
super
37-
end
38-
3934
Racc_debug_parser = false # :nodoc:
4035

4136
# By using the `:parser` keyword argument, you can translate in a way that is compatible with
@@ -61,7 +56,7 @@ def initialize(builder = Parser::Builder.new)
6156
# In an object passed to the `:parser` keyword argument, the `parse` and `parse_lex` methods
6257
# should be implemented as needed.
6358
#
64-
def initialize(builder = ::Parser::Builders::Default.new, parser: Prism)
59+
def initialize(builder = Prism::Translation::Parser::Builder.new, parser: Prism)
6560
@parser = parser
6661

6762
super(builder)

0 commit comments

Comments
 (0)