mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
[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
This commit is contained in:
parent
790b3858e8
commit
044570fd76
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user