sorbet-result 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +6 -0
- data/.tool-versions +1 -1
- data/CHANGELOG.md +21 -0
- data/Gemfile +3 -5
- data/Gemfile.lock +79 -64
- data/README.md +25 -2
- data/Rakefile +3 -5
- data/lib/minitest/result_assertions.rb +48 -0
- data/lib/sorbet-result.rb +1 -5
- data/lib/typed/result.rb +199 -7
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
- data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.5.rbi} +168 -72
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/{minitest@5.18.1.rbi → minitest@5.25.1.rbi} +337 -282
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.26.3.rbi} +38 -20
- data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.3.5.1.rbi} +663 -2397
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +37 -36
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
- data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +79 -75
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
- data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.9.2.rbi} +190 -167
- data/sorbet/rbi/gems/{reline@0.3.5.rbi → reline@0.5.10.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.33.1.rbi} +1220 -748
- data/sorbet/rbi/gems/rubocop-performance@1.22.1.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
- data/sorbet/rbi/gems/{rubocop@1.52.1.rbi → rubocop@1.66.1.rbi} +6236 -3446
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
- data/sorbet/rbi/gems/standard-performance@1.5.0.rbi +9 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
- data/sorbet/rbi/gems/standard@1.41.1.rbi +926 -0
- data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.11.6.rbi → tapioca@0.16.3.rbi} +937 -635
- data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.2.rbi} +832 -419
- data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.6.0.rbi} +1 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +431 -271
- data/sorbet/tapioca/config.yml +3 -12
- data/sorbet/tapioca/require.rb +0 -1
- metadata +37 -47
- data/.rubocop.yml +0 -33
- data/lib/typed/failure.rb +0 -81
- data/lib/typed/success.rb +0 -80
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
- data/sorbet/rbi/gems/irb@1.7.0.rbi +0 -342
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
- data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -328
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -1043
- data/sorbet/rbi/gems/spoom@1.2.1.rbi +0 -2503
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
- data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -986
@@ -4,35 +4,36 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `racc` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem racc`.
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
# source://racc//lib/racc/parser.rb#19
|
8
9
|
ParseError = Racc::ParseError
|
9
10
|
|
10
|
-
# source://racc//lib/racc/info.rb#
|
11
|
+
# source://racc//lib/racc/info.rb#17
|
11
12
|
Racc::Copyright = T.let(T.unsafe(nil), String)
|
12
13
|
|
13
|
-
# source://racc//lib/racc/parser.rb#
|
14
|
+
# source://racc//lib/racc/parser.rb#184
|
14
15
|
class Racc::Parser
|
15
|
-
# source://racc//lib/racc/parser.rb#
|
16
|
+
# source://racc//lib/racc/parser.rb#279
|
16
17
|
def _racc_do_parse_rb(arg, in_debug); end
|
17
18
|
|
18
|
-
# source://racc//lib/racc/parser.rb#
|
19
|
+
# source://racc//lib/racc/parser.rb#479
|
19
20
|
def _racc_do_reduce(arg, act); end
|
20
21
|
|
21
22
|
# common
|
22
23
|
#
|
23
|
-
# source://racc//lib/racc/parser.rb#
|
24
|
+
# source://racc//lib/racc/parser.rb#382
|
24
25
|
def _racc_evalact(act, arg); end
|
25
26
|
|
26
|
-
# source://racc//lib/racc/parser.rb#
|
27
|
+
# source://racc//lib/racc/parser.rb#232
|
27
28
|
def _racc_init_sysvars; end
|
28
29
|
|
29
|
-
# source://racc//lib/racc/parser.rb#
|
30
|
+
# source://racc//lib/racc/parser.rb#220
|
30
31
|
def _racc_setup; end
|
31
32
|
|
32
|
-
# source://racc//lib/racc/parser.rb#
|
33
|
+
# source://racc//lib/racc/parser.rb#329
|
33
34
|
def _racc_yyparse_rb(recv, mid, arg, c_debug); end
|
34
35
|
|
35
|
-
# source://racc//lib/racc/parser.rb#
|
36
|
+
# source://racc//lib/racc/parser.rb#262
|
36
37
|
def do_parse; end
|
37
38
|
|
38
39
|
# The method to fetch next token.
|
@@ -46,7 +47,7 @@ class Racc::Parser
|
|
46
47
|
#
|
47
48
|
# @raise [NotImplementedError]
|
48
49
|
#
|
49
|
-
# source://racc//lib/racc/parser.rb#
|
50
|
+
# source://racc//lib/racc/parser.rb#275
|
50
51
|
def next_token; end
|
51
52
|
|
52
53
|
# This method is called when a parse error is found.
|
@@ -66,96 +67,96 @@ class Racc::Parser
|
|
66
67
|
#
|
67
68
|
# @raise [ParseError]
|
68
69
|
#
|
69
|
-
# source://racc//lib/racc/parser.rb#
|
70
|
+
# source://racc//lib/racc/parser.rb#535
|
70
71
|
def on_error(t, val, vstack); end
|
71
72
|
|
72
|
-
# source://racc//lib/racc/parser.rb#
|
73
|
+
# source://racc//lib/racc/parser.rb#584
|
73
74
|
def racc_accept; end
|
74
75
|
|
75
|
-
# source://racc//lib/racc/parser.rb#
|
76
|
+
# source://racc//lib/racc/parser.rb#589
|
76
77
|
def racc_e_pop(state, tstack, vstack); end
|
77
78
|
|
78
|
-
# source://racc//lib/racc/parser.rb#
|
79
|
+
# source://racc//lib/racc/parser.rb#596
|
79
80
|
def racc_next_state(curstate, state); end
|
80
81
|
|
81
|
-
# source://racc//lib/racc/parser.rb#
|
82
|
+
# source://racc//lib/racc/parser.rb#602
|
82
83
|
def racc_print_stacks(t, v); end
|
83
84
|
|
84
|
-
# source://racc//lib/racc/parser.rb#
|
85
|
+
# source://racc//lib/racc/parser.rb#611
|
85
86
|
def racc_print_states(s); end
|
86
87
|
|
87
88
|
# For debugging output
|
88
89
|
#
|
89
|
-
# source://racc//lib/racc/parser.rb#
|
90
|
+
# source://racc//lib/racc/parser.rb#558
|
90
91
|
def racc_read_token(t, tok, val); end
|
91
92
|
|
92
|
-
# source://racc//lib/racc/parser.rb#
|
93
|
+
# source://racc//lib/racc/parser.rb#571
|
93
94
|
def racc_reduce(toks, sim, tstack, vstack); end
|
94
95
|
|
95
|
-
# source://racc//lib/racc/parser.rb#
|
96
|
+
# source://racc//lib/racc/parser.rb#565
|
96
97
|
def racc_shift(tok, tstack, vstack); end
|
97
98
|
|
98
|
-
# source://racc//lib/racc/parser.rb#
|
99
|
+
# source://racc//lib/racc/parser.rb#618
|
99
100
|
def racc_token2str(tok); end
|
100
101
|
|
101
102
|
# Convert internal ID of token symbol to the string.
|
102
103
|
#
|
103
|
-
# source://racc//lib/racc/parser.rb#
|
104
|
+
# source://racc//lib/racc/parser.rb#624
|
104
105
|
def token_to_str(t); end
|
105
106
|
|
106
107
|
# Exit parser.
|
107
108
|
# Return value is +Symbol_Value_Stack[0]+.
|
108
109
|
#
|
109
|
-
# source://racc//lib/racc/parser.rb#
|
110
|
+
# source://racc//lib/racc/parser.rb#548
|
110
111
|
def yyaccept; end
|
111
112
|
|
112
113
|
# Leave error recovering mode.
|
113
114
|
#
|
114
|
-
# source://racc//lib/racc/parser.rb#
|
115
|
+
# source://racc//lib/racc/parser.rb#553
|
115
116
|
def yyerrok; end
|
116
117
|
|
117
118
|
# Enter error recovering mode.
|
118
119
|
# This method does not call #on_error.
|
119
120
|
#
|
120
|
-
# source://racc//lib/racc/parser.rb#
|
121
|
+
# source://racc//lib/racc/parser.rb#542
|
121
122
|
def yyerror; end
|
122
123
|
|
123
|
-
# source://racc//lib/racc/parser.rb#
|
124
|
+
# source://racc//lib/racc/parser.rb#324
|
124
125
|
def yyparse(recv, mid); end
|
125
126
|
|
126
127
|
class << self
|
127
|
-
# source://racc//lib/racc/parser.rb#
|
128
|
+
# source://racc//lib/racc/parser.rb#216
|
128
129
|
def racc_runtime_type; end
|
129
130
|
end
|
130
131
|
end
|
131
132
|
|
132
|
-
# source://racc//lib/racc/parser.rb#
|
133
|
+
# source://racc//lib/racc/parser.rb#205
|
133
134
|
Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
|
134
135
|
|
135
136
|
Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String)
|
136
137
|
|
137
|
-
# source://racc//lib/racc/parser.rb#
|
138
|
+
# source://racc//lib/racc/parser.rb#207
|
138
139
|
Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
|
139
140
|
|
140
141
|
Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String)
|
141
142
|
|
142
|
-
# source://racc//lib/racc/parser.rb#
|
143
|
+
# source://racc//lib/racc/parser.rb#187
|
143
144
|
Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
|
144
145
|
|
145
|
-
# source://racc//lib/racc/parser.rb#
|
146
|
+
# source://racc//lib/racc/parser.rb#208
|
146
147
|
Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
|
147
148
|
|
148
|
-
# source://racc//lib/racc/parser.rb#
|
149
|
+
# source://racc//lib/racc/parser.rb#186
|
149
150
|
Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
|
150
151
|
|
151
|
-
# source://racc//lib/racc/parser.rb#
|
152
|
+
# source://racc//lib/racc/parser.rb#206
|
152
153
|
Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
|
153
154
|
|
154
|
-
# source://racc//lib/racc/parser.rb#
|
155
|
+
# source://racc//lib/racc/parser.rb#181
|
155
156
|
Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
|
156
157
|
|
157
|
-
# source://racc//lib/racc/info.rb#
|
158
|
+
# source://racc//lib/racc/info.rb#15
|
158
159
|
Racc::VERSION = T.let(T.unsafe(nil), String)
|
159
160
|
|
160
|
-
# source://racc//lib/racc/info.rb#
|
161
|
+
# source://racc//lib/racc/info.rb#16
|
161
162
|
Racc::Version = T.let(T.unsafe(nil), String)
|