From 044570fd76d58048ea3deb0693d00a89a746d1b6 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:06:16 +0100 Subject: [ruby/prism] Fix merge mishap Caused by https://github.com/ruby/prism/pull/3478 and https://github.com/ruby/prism/pull/3443 I also made the builder reference more explicit to clearly distinquish between `::Parser` and `Prism::Translation::Parser` https://github.com/ruby/prism/commit/d52aaa75b6 --- lib/prism/translation/parser.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/prism/translation/parser.rb b/lib/prism/translation/parser.rb index 4c1ce1c454..8ea3038347 100644 --- a/lib/prism/translation/parser.rb +++ b/lib/prism/translation/parser.rb @@ -31,11 +31,6 @@ module Prism end end - # Create the parser with our custom builder class - def initialize(builder = Parser::Builder.new) - super - end - Racc_debug_parser = false # :nodoc: # By using the `:parser` keyword argument, you can translate in a way that is compatible with @@ -61,7 +56,7 @@ module Prism # In an object passed to the `:parser` keyword argument, the `parse` and `parse_lex` methods # should be implemented as needed. # - def initialize(builder = ::Parser::Builders::Default.new, parser: Prism) + def initialize(builder = Prism::Translation::Parser::Builder.new, parser: Prism) @parser = parser super(builder) -- cgit v1.2.3