Skip to content

Commit 1b5502b

Browse files
committed
Rename to reduce top-level type alias
from json_parser to JSON::parser
1 parent ab9512d commit 1b5502b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/json/0/json.rbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ end
9494
class JSON::Pure::Parser
9595
end
9696

97-
type json_parser = singleton(::JSON::Ext::Parser) | singleton(::JSON::Pure::Parser)
9897
type json_state = singleton(JSON::Ext::Generator::State) | singleton(JSON::Pure::Generator::State)
9998

10099
# <!-- rdoc-file=ext/json/lib/json.rb -->
@@ -674,6 +673,7 @@ type json_state = singleton(JSON::Ext::Generator::State) | singleton(JSON::Pure:
674673
module JSON
675674
type options = Hash[Symbol, untyped]
676675
type generator = singleton(::JSON::Ext::Generator) | singleton(::JSON::Pure::Generator)
676+
type parser = singleton(::JSON::Ext::Parser) | singleton(::JSON::Pure::Parser)
677677

678678
# <!--
679679
# rdoc-file=ext/json/lib/json/common.rb
@@ -1080,9 +1080,9 @@ module JSON
10801080
# <!-- rdoc-file=ext/json/lib/json/common.rb -->
10811081
# Returns the JSON parser class that is used by JSON.
10821082
#
1083-
def self.parser: () -> json_parser
1083+
def self.parser: () -> parser
10841084

1085-
def self.parser=: (json_parser parser) -> void
1085+
def self.parser=: (parser parser) -> void
10861086

10871087
# <!--
10881088
# rdoc-file=ext/json/lib/json/common.rb

0 commit comments

Comments
 (0)