graphql 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/graphql/language/lexer.rb +152 -234
- data/lib/graphql/language/lexer.rl +0 -6
- data/lib/graphql/language/parser.rb +300 -343
- data/lib/graphql/language/parser.y +1 -9
- data/lib/graphql/query.rb +2 -10
- data/lib/graphql/query/executor.rb +4 -9
- data/lib/graphql/query/serial_execution/field_resolution.rb +6 -8
- data/lib/graphql/schema.rb +0 -26
- data/lib/graphql/static_validation/type_stack.rb +1 -1
- data/lib/graphql/version.rb +1 -1
- data/readme.md +1 -2
- data/spec/graphql/query/executor_spec.rb +2 -21
- data/spec/graphql/query/serial_execution/execution_context_spec.rb +0 -2
- data/spec/graphql/query/serial_execution/value_resolution_spec.rb +0 -3
- data/spec/graphql/query_spec.rb +0 -4
- metadata +2 -2
@@ -14,9 +14,6 @@
|
|
14
14
|
TRUE = 'true';
|
15
15
|
FALSE = 'false';
|
16
16
|
NULL = 'null';
|
17
|
-
QUERY = 'query';
|
18
|
-
MUTATION = 'mutation';
|
19
|
-
SUBSCRIPTION = 'subscription';
|
20
17
|
RCURLY = '{';
|
21
18
|
LCURLY = '}';
|
22
19
|
RPAREN = '(';
|
@@ -46,9 +43,6 @@
|
|
46
43
|
TRUE => { emit_token.call(:TRUE) };
|
47
44
|
FALSE => { emit_token.call(:FALSE) };
|
48
45
|
NULL => { emit_token.call(:NULL) };
|
49
|
-
QUERY => { emit_token.call(:QUERY) };
|
50
|
-
MUTATION => { emit_token.call(:MUTATION) };
|
51
|
-
SUBSCRIPTION => { emit_token.call(:SUBSCRIPTION) };
|
52
46
|
RCURLY => { emit_token.call(:RCURLY) };
|
53
47
|
LCURLY => { emit_token.call(:LCURLY) };
|
54
48
|
RPAREN => { emit_token.call(:RPAREN) };
|
@@ -12,7 +12,7 @@ module GraphQL
|
|
12
12
|
module Language
|
13
13
|
class Parser < Racc::Parser
|
14
14
|
|
15
|
-
module_eval(<<'...end parser.y/module_eval...', 'parser.y',
|
15
|
+
module_eval(<<'...end parser.y/module_eval...', 'parser.y', 214)
|
16
16
|
|
17
17
|
def initialize(query_string)
|
18
18
|
@query_string = query_string
|
@@ -75,244 +75,217 @@ end
|
|
75
75
|
##### State transition tables begin ###
|
76
76
|
|
77
77
|
racc_action_table = [
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
nil, 93, 103, nil, 94, nil, nil, 95, nil, 86,
|
99
|
-
87, 83, 84, 85, 92, nil, nil, 93, nil, nil,
|
100
|
-
94, nil, nil, 95, nil, 86, 87, 83, 84, 85,
|
101
|
-
92, nil, nil, 93, 114, nil, 94, nil, nil, 95,
|
102
|
-
nil, 86, 87, 83, 84, 85, 9, 10, 11, nil,
|
103
|
-
nil, nil, nil, 92, nil, nil, 93, 12, nil, 94,
|
104
|
-
nil, 13, 95, nil, 86, 87, 83, 84, 85 ]
|
78
|
+
86, 105, 37, 87, 106, 36, 88, 40, 105, 89,
|
79
|
+
114, 80, 81, 77, 78, 79, 86, 62, 48, 87,
|
80
|
+
70, 37, 88, 40, 44, 89, 74, 80, 81, 77,
|
81
|
+
78, 79, 86, 40, 37, 87, 9, 9, 88, 32,
|
82
|
+
9, 89, 9, 80, 81, 77, 78, 79, 86, 30,
|
83
|
+
40, 87, 108, 9, 88, 9, 40, 89, 40, 80,
|
84
|
+
81, 77, 78, 79, 86, 112, 16, 87, 97, 48,
|
85
|
+
88, 51, 40, 89, nil, 80, 81, 77, 78, 79,
|
86
|
+
11, 12, 20, 14, 15, 68, 9, nil, 11, 12,
|
87
|
+
13, 14, 15, nil, 11, 12, 20, 14, 15, 21,
|
88
|
+
11, 12, 20, 14, 15, 12, 20, 14, 15, 28,
|
89
|
+
33, 11, 12, 20, 14, 15, 94, nil, nil, nil,
|
90
|
+
28, 11, 12, 20, 14, 15, 94, nil, nil, nil,
|
91
|
+
nil, 11, 12, 20, 14, 15, 42, 12, 20, 14,
|
92
|
+
15, nil, nil, 9, 40, 11, 12, 13, 14, 15,
|
93
|
+
100, 11, 12, 20, 14, 15, 110, 11, 12, 20,
|
94
|
+
14, 15, 11, 12, 20, 14, 15, 11, 12, 20,
|
95
|
+
14, 15, 11, 12, 20, 14, 15, 11, 12, 20,
|
96
|
+
14, 15, 11, 12, 20, 14, 15, 11, 12, 20,
|
97
|
+
14, 15, 11, 12, 20, 14, 15 ]
|
105
98
|
|
106
99
|
racc_action_check = [
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
94, 94, 94, 94, 94,
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
nil, 93, 93, nil, 93, nil, nil, 93, nil, 93,
|
128
|
-
93, 93, 93, 93, 118, nil, nil, 118, nil, nil,
|
129
|
-
118, nil, nil, 118, nil, 118, 118, 118, 118, 118,
|
130
|
-
104, nil, nil, 104, 104, nil, 104, nil, nil, 104,
|
131
|
-
nil, 104, 104, 104, 104, 104, 3, 3, 3, nil,
|
132
|
-
nil, nil, nil, 112, nil, nil, 112, 3, nil, 112,
|
133
|
-
nil, 3, 112, nil, 112, 112, 112, 112, 112 ]
|
100
|
+
112, 92, 27, 112, 92, 27, 112, 60, 107, 112,
|
101
|
+
107, 112, 112, 112, 112, 112, 106, 46, 46, 106,
|
102
|
+
54, 56, 106, 58, 29, 106, 64, 106, 106, 106,
|
103
|
+
106, 106, 70, 67, 50, 70, 72, 73, 70, 18,
|
104
|
+
75, 70, 49, 70, 70, 70, 70, 70, 98, 16,
|
105
|
+
31, 98, 98, 45, 98, 43, 41, 98, 38, 98,
|
106
|
+
98, 98, 98, 98, 87, 103, 1, 87, 87, 32,
|
107
|
+
87, 37, 35, 87, nil, 87, 87, 87, 87, 87,
|
108
|
+
37, 37, 37, 37, 37, 52, 3, nil, 3, 3,
|
109
|
+
3, 3, 3, nil, 52, 52, 52, 52, 52, 9,
|
110
|
+
9, 9, 9, 9, 9, 44, 44, 44, 44, 9,
|
111
|
+
22, 22, 22, 22, 22, 22, 74, nil, nil, nil,
|
112
|
+
22, 74, 74, 74, 74, 74, 94, nil, nil, nil,
|
113
|
+
nil, 94, 94, 94, 94, 94, 28, 28, 28, 28,
|
114
|
+
28, nil, nil, 0, 28, 0, 0, 0, 0, 0,
|
115
|
+
88, 88, 88, 88, 88, 88, 101, 101, 101, 101,
|
116
|
+
101, 101, 40, 40, 40, 40, 40, 36, 36, 36,
|
117
|
+
36, 36, 86, 86, 86, 86, 86, 7, 7, 7,
|
118
|
+
7, 7, 42, 42, 42, 42, 42, 48, 48, 48,
|
119
|
+
48, 48, 13, 13, 13, 13, 13 ]
|
134
120
|
|
135
121
|
racc_action_pointer = [
|
136
|
-
|
137
|
-
nil, nil,
|
138
|
-
nil, nil,
|
139
|
-
nil, nil, nil,
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
nil, nil,
|
146
|
-
|
147
|
-
nil, nil,
|
148
|
-
nil, nil ]
|
122
|
+
133, 66, nil, 76, nil, nil, nil, 165, nil, 88,
|
123
|
+
nil, nil, nil, 180, nil, nil, 49, nil, 37, nil,
|
124
|
+
nil, nil, 99, nil, nil, nil, nil, 0, 124, 12,
|
125
|
+
nil, 30, 65, nil, nil, 52, 155, 68, 38, nil,
|
126
|
+
150, 36, 170, 45, 92, 43, 14, nil, 175, 32,
|
127
|
+
32, nil, 82, nil, 15, nil, 19, nil, 3, nil,
|
128
|
+
-13, nil, nil, nil, 21, nil, nil, 13, nil, nil,
|
129
|
+
28, nil, 26, 27, 109, 30, nil, nil, nil, nil,
|
130
|
+
nil, nil, nil, nil, nil, nil, 160, 60, 139, nil,
|
131
|
+
nil, nil, -5, nil, 119, nil, nil, nil, 44, nil,
|
132
|
+
nil, 145, nil, 60, nil, nil, 12, 2, nil, nil,
|
133
|
+
nil, nil, -4, nil, nil, nil ]
|
149
134
|
|
150
135
|
racc_action_default = [
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
-21, -68 ]
|
136
|
+
-73, -73, -1, -2, -3, -5, -6, -9, -8, -73,
|
137
|
+
-32, -33, -34, -35, -36, -37, -73, -4, -11, -10,
|
138
|
+
-35, -21, -73, -25, -27, -28, -29, -38, -64, -73,
|
139
|
+
116, -64, -73, -22, -26, -64, -73, -73, -65, -66,
|
140
|
+
-73, -64, -73, -73, -73, -73, -73, -13, -73, -23,
|
141
|
+
-38, -39, -73, -41, -73, -67, -38, -69, -64, -71,
|
142
|
+
-64, -7, -12, -14, -73, -24, -30, -64, -40, -42,
|
143
|
+
-73, -68, -73, -73, -73, -23, -43, -44, -45, -46,
|
144
|
+
-47, -48, -49, -50, -51, -52, -73, -73, -73, -63,
|
145
|
+
-70, -72, -19, -16, -73, -31, -53, -54, -73, -56,
|
146
|
+
-58, -73, -60, -73, -15, -17, -73, -73, -55, -57,
|
147
|
+
-59, -61, -73, -20, -18, -62 ]
|
164
148
|
|
165
149
|
racc_goto_table = [
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
nil, nil, nil,
|
173
|
-
nil, nil, nil,
|
174
|
-
nil,
|
175
|
-
nil, nil, nil,
|
176
|
-
109 ]
|
150
|
+
19, 41, 27, 92, 76, 35, 29, 104, 22, 4,
|
151
|
+
66, 47, 17, 46, 31, 27, 18, 60, 1, 52,
|
152
|
+
59, 99, 61, 107, 43, 63, 65, 45, 67, 50,
|
153
|
+
54, 49, 109, 56, 71, 58, 95, 57, 53, 3,
|
154
|
+
113, 64, 102, 98, 23, 54, 115, 101, 2, 90,
|
155
|
+
91, 55, 65, 69, 72, 111, 73, 34, nil, nil,
|
156
|
+
nil, nil, nil, 75, nil, nil, nil, 93, nil, nil,
|
157
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, 96,
|
158
|
+
nil, 103, nil, nil, nil, nil, nil, 93, nil, nil,
|
159
|
+
nil, nil, nil, nil, 103 ]
|
177
160
|
|
178
161
|
racc_goto_check = [
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
nil, nil, nil,
|
186
|
-
nil, nil, nil,
|
187
|
-
nil, nil, nil, nil, nil,
|
188
|
-
nil, nil, nil,
|
189
|
-
12 ]
|
162
|
+
7, 24, 7, 14, 16, 23, 7, 15, 17, 4,
|
163
|
+
18, 13, 4, 12, 9, 7, 8, 24, 1, 25,
|
164
|
+
11, 16, 11, 14, 10, 13, 11, 10, 23, 7,
|
165
|
+
7, 10, 16, 7, 23, 7, 18, 10, 26, 3,
|
166
|
+
16, 7, 33, 31, 19, 7, 16, 32, 2, 11,
|
167
|
+
11, 35, 11, 26, 10, 33, 10, 19, nil, nil,
|
168
|
+
nil, nil, nil, 10, nil, nil, nil, 7, nil, nil,
|
169
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, 7,
|
170
|
+
nil, 7, nil, nil, nil, nil, nil, 7, nil, nil,
|
171
|
+
nil, nil, nil, nil, 7 ]
|
190
172
|
|
191
173
|
racc_goto_pointer = [
|
192
|
-
nil,
|
193
|
-
|
194
|
-
|
195
|
-
nil,
|
174
|
+
nil, 18, 48, 39, 9, nil, nil, -7, 9, -4,
|
175
|
+
-4, -23, -19, -21, -71, -85, -66, -1, -39, 35,
|
176
|
+
nil, nil, nil, -22, -27, -18, 1, nil, nil, nil,
|
177
|
+
nil, -44, -41, -46, nil, 13 ]
|
196
178
|
|
197
179
|
racc_goto_default = [
|
198
180
|
nil, nil, nil, nil, nil, 5, 6, 7, nil, nil,
|
199
|
-
nil, 8,
|
200
|
-
|
201
|
-
|
181
|
+
nil, 8, nil, nil, nil, nil, nil, nil, nil, nil,
|
182
|
+
24, 25, 26, nil, 10, nil, nil, 82, 83, 84,
|
183
|
+
85, nil, nil, nil, 38, 39 ]
|
202
184
|
|
203
185
|
racc_reduce_table = [
|
204
186
|
0, 0, :racc_error,
|
187
|
+
1, 23, :_reduce_none,
|
188
|
+
1, 24, :_reduce_2,
|
189
|
+
1, 25, :_reduce_3,
|
190
|
+
2, 25, :_reduce_4,
|
205
191
|
1, 26, :_reduce_none,
|
206
|
-
1,
|
207
|
-
|
208
|
-
|
192
|
+
1, 26, :_reduce_none,
|
193
|
+
5, 27, :_reduce_7,
|
194
|
+
1, 27, :_reduce_8,
|
195
|
+
0, 30, :_reduce_9,
|
196
|
+
1, 30, :_reduce_none,
|
197
|
+
0, 31, :_reduce_11,
|
198
|
+
3, 31, :_reduce_12,
|
199
|
+
1, 34, :_reduce_13,
|
200
|
+
2, 34, :_reduce_14,
|
201
|
+
5, 35, :_reduce_15,
|
202
|
+
1, 36, :_reduce_16,
|
203
|
+
2, 36, :_reduce_17,
|
204
|
+
3, 36, :_reduce_18,
|
205
|
+
0, 37, :_reduce_19,
|
206
|
+
2, 37, :_reduce_20,
|
207
|
+
2, 33, :_reduce_21,
|
208
|
+
3, 33, :_reduce_22,
|
209
|
+
0, 40, :_reduce_23,
|
210
|
+
1, 40, :_reduce_24,
|
211
|
+
1, 39, :_reduce_25,
|
212
|
+
2, 39, :_reduce_26,
|
213
|
+
1, 41, :_reduce_none,
|
214
|
+
1, 41, :_reduce_none,
|
215
|
+
1, 41, :_reduce_none,
|
216
|
+
4, 42, :_reduce_30,
|
217
|
+
6, 42, :_reduce_31,
|
209
218
|
1, 29, :_reduce_none,
|
210
219
|
1, 29, :_reduce_none,
|
211
|
-
|
212
|
-
1,
|
213
|
-
1,
|
214
|
-
1,
|
220
|
+
1, 46, :_reduce_none,
|
221
|
+
1, 46, :_reduce_none,
|
222
|
+
1, 46, :_reduce_none,
|
223
|
+
1, 46, :_reduce_none,
|
224
|
+
0, 45, :_reduce_38,
|
225
|
+
2, 45, :_reduce_39,
|
226
|
+
3, 45, :_reduce_40,
|
227
|
+
1, 47, :_reduce_41,
|
228
|
+
2, 47, :_reduce_42,
|
229
|
+
3, 48, :_reduce_43,
|
230
|
+
1, 38, :_reduce_44,
|
231
|
+
1, 38, :_reduce_45,
|
232
|
+
1, 38, :_reduce_46,
|
233
|
+
1, 38, :_reduce_47,
|
234
|
+
1, 38, :_reduce_48,
|
235
|
+
1, 38, :_reduce_none,
|
236
|
+
1, 38, :_reduce_none,
|
237
|
+
1, 38, :_reduce_none,
|
238
|
+
1, 38, :_reduce_none,
|
239
|
+
2, 49, :_reduce_53,
|
240
|
+
2, 50, :_reduce_54,
|
241
|
+
3, 50, :_reduce_55,
|
242
|
+
1, 53, :_reduce_56,
|
243
|
+
2, 53, :_reduce_57,
|
244
|
+
2, 51, :_reduce_58,
|
245
|
+
3, 51, :_reduce_59,
|
246
|
+
1, 54, :_reduce_60,
|
247
|
+
2, 54, :_reduce_61,
|
248
|
+
3, 55, :_reduce_62,
|
249
|
+
1, 52, :_reduce_63,
|
250
|
+
0, 32, :_reduce_64,
|
215
251
|
1, 32, :_reduce_none,
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
3,
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
2, 41, :_reduce_23,
|
228
|
-
2, 36, :_reduce_24,
|
229
|
-
3, 36, :_reduce_25,
|
230
|
-
0, 44, :_reduce_26,
|
231
|
-
1, 44, :_reduce_27,
|
232
|
-
1, 43, :_reduce_28,
|
233
|
-
2, 43, :_reduce_29,
|
234
|
-
1, 45, :_reduce_none,
|
235
|
-
1, 45, :_reduce_none,
|
236
|
-
1, 45, :_reduce_none,
|
237
|
-
4, 46, :_reduce_33,
|
238
|
-
6, 46, :_reduce_34,
|
239
|
-
1, 37, :_reduce_none,
|
240
|
-
1, 37, :_reduce_none,
|
241
|
-
1, 50, :_reduce_none,
|
242
|
-
1, 50, :_reduce_none,
|
243
|
-
1, 50, :_reduce_none,
|
244
|
-
1, 50, :_reduce_none,
|
245
|
-
1, 50, :_reduce_none,
|
246
|
-
1, 50, :_reduce_none,
|
247
|
-
1, 50, :_reduce_none,
|
248
|
-
0, 49, :_reduce_44,
|
249
|
-
2, 49, :_reduce_45,
|
250
|
-
3, 49, :_reduce_46,
|
251
|
-
1, 51, :_reduce_47,
|
252
|
-
2, 51, :_reduce_48,
|
253
|
-
3, 52, :_reduce_49,
|
254
|
-
1, 42, :_reduce_50,
|
255
|
-
1, 42, :_reduce_51,
|
256
|
-
1, 42, :_reduce_52,
|
257
|
-
1, 42, :_reduce_53,
|
258
|
-
1, 42, :_reduce_54,
|
259
|
-
1, 42, :_reduce_none,
|
260
|
-
1, 42, :_reduce_none,
|
261
|
-
1, 42, :_reduce_none,
|
262
|
-
1, 42, :_reduce_none,
|
263
|
-
2, 53, :_reduce_59,
|
264
|
-
2, 54, :_reduce_60,
|
265
|
-
3, 54, :_reduce_61,
|
266
|
-
1, 57, :_reduce_62,
|
267
|
-
2, 57, :_reduce_63,
|
268
|
-
2, 55, :_reduce_64,
|
269
|
-
3, 55, :_reduce_65,
|
270
|
-
1, 58, :_reduce_66,
|
271
|
-
2, 58, :_reduce_67,
|
272
|
-
3, 59, :_reduce_68,
|
273
|
-
1, 56, :_reduce_69,
|
274
|
-
0, 35, :_reduce_70,
|
275
|
-
1, 35, :_reduce_none,
|
276
|
-
1, 60, :_reduce_72,
|
277
|
-
2, 60, :_reduce_73,
|
278
|
-
3, 61, :_reduce_74,
|
279
|
-
3, 47, :_reduce_75,
|
280
|
-
5, 48, :_reduce_76,
|
281
|
-
3, 48, :_reduce_77,
|
282
|
-
6, 31, :_reduce_78 ]
|
283
|
-
|
284
|
-
racc_reduce_n = 79
|
285
|
-
|
286
|
-
racc_shift_n = 122
|
252
|
+
1, 56, :_reduce_66,
|
253
|
+
2, 56, :_reduce_67,
|
254
|
+
3, 57, :_reduce_68,
|
255
|
+
3, 43, :_reduce_69,
|
256
|
+
5, 44, :_reduce_70,
|
257
|
+
3, 44, :_reduce_71,
|
258
|
+
6, 28, :_reduce_72 ]
|
259
|
+
|
260
|
+
racc_reduce_n = 73
|
261
|
+
|
262
|
+
racc_shift_n = 116
|
287
263
|
|
288
264
|
racc_token_table = {
|
289
265
|
false => 0,
|
290
266
|
:error => 1,
|
291
|
-
:
|
292
|
-
:
|
293
|
-
:
|
294
|
-
:
|
295
|
-
:
|
296
|
-
:
|
297
|
-
:
|
298
|
-
:
|
299
|
-
:
|
300
|
-
:
|
301
|
-
:
|
302
|
-
:
|
303
|
-
:
|
304
|
-
:
|
305
|
-
:
|
306
|
-
:
|
307
|
-
:
|
308
|
-
:
|
309
|
-
:
|
310
|
-
:
|
311
|
-
|
312
|
-
|
313
|
-
:ELLIPSIS => 24 }
|
314
|
-
|
315
|
-
racc_nt_base = 25
|
267
|
+
:RPAREN => 2,
|
268
|
+
:LPAREN => 3,
|
269
|
+
:VAR_SIGN => 4,
|
270
|
+
:COLON => 5,
|
271
|
+
:BANG => 6,
|
272
|
+
:RBRACKET => 7,
|
273
|
+
:LBRACKET => 8,
|
274
|
+
:EQUALS => 9,
|
275
|
+
:RCURLY => 10,
|
276
|
+
:LCURLY => 11,
|
277
|
+
:ON => 12,
|
278
|
+
:IDENTIFIER => 13,
|
279
|
+
:FRAGMENT => 14,
|
280
|
+
:TRUE => 15,
|
281
|
+
:FALSE => 16,
|
282
|
+
:FLOAT => 17,
|
283
|
+
:INT => 18,
|
284
|
+
:STRING => 19,
|
285
|
+
:DIR_SIGN => 20,
|
286
|
+
:ELLIPSIS => 21 }
|
287
|
+
|
288
|
+
racc_nt_base = 22
|
316
289
|
|
317
290
|
racc_use_result_var = true
|
318
291
|
|
@@ -335,9 +308,6 @@ Racc_arg = [
|
|
335
308
|
Racc_token_to_s_table = [
|
336
309
|
"$end",
|
337
310
|
"error",
|
338
|
-
"QUERY",
|
339
|
-
"MUTATION",
|
340
|
-
"SUBSCRIPTION",
|
341
311
|
"RPAREN",
|
342
312
|
"LPAREN",
|
343
313
|
"VAR_SIGN",
|
@@ -365,12 +335,11 @@ Racc_token_to_s_table = [
|
|
365
335
|
"definition",
|
366
336
|
"operation_definition",
|
367
337
|
"fragment_definition",
|
368
|
-
"
|
338
|
+
"name",
|
369
339
|
"operation_name_opt",
|
370
340
|
"variable_definitions_opt",
|
371
341
|
"directives_list_opt",
|
372
342
|
"selection_set",
|
373
|
-
"name",
|
374
343
|
"variable_definitions_list",
|
375
344
|
"variable_definition",
|
376
345
|
"variable_definition_type_name",
|
@@ -459,51 +428,45 @@ module_eval(<<'.,.,', 'parser.y', 28)
|
|
459
428
|
end
|
460
429
|
.,.,
|
461
430
|
|
462
|
-
|
463
|
-
|
464
|
-
# reduce 10 omitted
|
465
|
-
|
466
|
-
# reduce 11 omitted
|
467
|
-
|
468
|
-
module_eval(<<'.,.,', 'parser.y', 42)
|
469
|
-
def _reduce_12(val, _values, result)
|
431
|
+
module_eval(<<'.,.,', 'parser.y', 37)
|
432
|
+
def _reduce_9(val, _values, result)
|
470
433
|
return nil
|
471
434
|
result
|
472
435
|
end
|
473
436
|
.,.,
|
474
437
|
|
475
|
-
# reduce
|
438
|
+
# reduce 10 omitted
|
476
439
|
|
477
|
-
module_eval(<<'.,.,', 'parser.y',
|
478
|
-
def
|
440
|
+
module_eval(<<'.,.,', 'parser.y', 41)
|
441
|
+
def _reduce_11(val, _values, result)
|
479
442
|
return []
|
480
443
|
result
|
481
444
|
end
|
482
445
|
.,.,
|
483
446
|
|
484
|
-
module_eval(<<'.,.,', 'parser.y',
|
485
|
-
def
|
447
|
+
module_eval(<<'.,.,', 'parser.y', 42)
|
448
|
+
def _reduce_12(val, _values, result)
|
486
449
|
return val[1]
|
487
450
|
result
|
488
451
|
end
|
489
452
|
.,.,
|
490
453
|
|
491
|
-
module_eval(<<'.,.,', 'parser.y',
|
492
|
-
def
|
454
|
+
module_eval(<<'.,.,', 'parser.y', 45)
|
455
|
+
def _reduce_13(val, _values, result)
|
493
456
|
return [val[0]]
|
494
457
|
result
|
495
458
|
end
|
496
459
|
.,.,
|
497
460
|
|
498
|
-
module_eval(<<'.,.,', 'parser.y',
|
499
|
-
def
|
461
|
+
module_eval(<<'.,.,', 'parser.y', 46)
|
462
|
+
def _reduce_14(val, _values, result)
|
500
463
|
val[0] << val[1]
|
501
464
|
result
|
502
465
|
end
|
503
466
|
.,.,
|
504
467
|
|
505
|
-
module_eval(<<'.,.,', 'parser.y',
|
506
|
-
def
|
468
|
+
module_eval(<<'.,.,', 'parser.y', 50)
|
469
|
+
def _reduce_15(val, _values, result)
|
507
470
|
return make_node(:VariableDefinition, {
|
508
471
|
name: val[1],
|
509
472
|
type: val[3],
|
@@ -515,91 +478,91 @@ module_eval(<<'.,.,', 'parser.y', 55)
|
|
515
478
|
end
|
516
479
|
.,.,
|
517
480
|
|
518
|
-
module_eval(<<'.,.,', 'parser.y',
|
519
|
-
def
|
481
|
+
module_eval(<<'.,.,', 'parser.y', 59)
|
482
|
+
def _reduce_16(val, _values, result)
|
520
483
|
return make_node(:TypeName, name: val[0])
|
521
484
|
result
|
522
485
|
end
|
523
486
|
.,.,
|
524
487
|
|
525
|
-
module_eval(<<'.,.,', 'parser.y',
|
526
|
-
def
|
488
|
+
module_eval(<<'.,.,', 'parser.y', 60)
|
489
|
+
def _reduce_17(val, _values, result)
|
527
490
|
return make_node(:NonNullType, of_type: val[0])
|
528
491
|
result
|
529
492
|
end
|
530
493
|
.,.,
|
531
494
|
|
532
|
-
module_eval(<<'.,.,', 'parser.y',
|
533
|
-
def
|
495
|
+
module_eval(<<'.,.,', 'parser.y', 61)
|
496
|
+
def _reduce_18(val, _values, result)
|
534
497
|
return make_node(:ListType, of_type: val[1])
|
535
498
|
result
|
536
499
|
end
|
537
500
|
.,.,
|
538
501
|
|
539
|
-
module_eval(<<'.,.,', 'parser.y',
|
540
|
-
def
|
502
|
+
module_eval(<<'.,.,', 'parser.y', 64)
|
503
|
+
def _reduce_19(val, _values, result)
|
541
504
|
return nil
|
542
505
|
result
|
543
506
|
end
|
544
507
|
.,.,
|
545
508
|
|
546
|
-
module_eval(<<'.,.,', 'parser.y',
|
547
|
-
def
|
509
|
+
module_eval(<<'.,.,', 'parser.y', 65)
|
510
|
+
def _reduce_20(val, _values, result)
|
548
511
|
return val[1]
|
549
512
|
result
|
550
513
|
end
|
551
514
|
.,.,
|
552
515
|
|
553
|
-
module_eval(<<'.,.,', 'parser.y',
|
554
|
-
def
|
516
|
+
module_eval(<<'.,.,', 'parser.y', 68)
|
517
|
+
def _reduce_21(val, _values, result)
|
555
518
|
return []
|
556
519
|
result
|
557
520
|
end
|
558
521
|
.,.,
|
559
522
|
|
560
|
-
module_eval(<<'.,.,', 'parser.y',
|
561
|
-
def
|
523
|
+
module_eval(<<'.,.,', 'parser.y', 69)
|
524
|
+
def _reduce_22(val, _values, result)
|
562
525
|
return val[1]
|
563
526
|
result
|
564
527
|
end
|
565
528
|
.,.,
|
566
529
|
|
567
|
-
module_eval(<<'.,.,', 'parser.y',
|
568
|
-
def
|
530
|
+
module_eval(<<'.,.,', 'parser.y', 72)
|
531
|
+
def _reduce_23(val, _values, result)
|
569
532
|
return []
|
570
533
|
result
|
571
534
|
end
|
572
535
|
.,.,
|
573
536
|
|
574
|
-
module_eval(<<'.,.,', 'parser.y',
|
575
|
-
def
|
537
|
+
module_eval(<<'.,.,', 'parser.y', 73)
|
538
|
+
def _reduce_24(val, _values, result)
|
576
539
|
return val[0]
|
577
540
|
result
|
578
541
|
end
|
579
542
|
.,.,
|
580
543
|
|
581
|
-
module_eval(<<'.,.,', 'parser.y',
|
582
|
-
def
|
544
|
+
module_eval(<<'.,.,', 'parser.y', 76)
|
545
|
+
def _reduce_25(val, _values, result)
|
583
546
|
return [result]
|
584
547
|
result
|
585
548
|
end
|
586
549
|
.,.,
|
587
550
|
|
588
|
-
module_eval(<<'.,.,', 'parser.y',
|
589
|
-
def
|
551
|
+
module_eval(<<'.,.,', 'parser.y', 77)
|
552
|
+
def _reduce_26(val, _values, result)
|
590
553
|
val[0] << val[1]
|
591
554
|
result
|
592
555
|
end
|
593
556
|
.,.,
|
594
557
|
|
595
|
-
# reduce
|
558
|
+
# reduce 27 omitted
|
596
559
|
|
597
|
-
# reduce
|
560
|
+
# reduce 28 omitted
|
598
561
|
|
599
|
-
# reduce
|
562
|
+
# reduce 29 omitted
|
600
563
|
|
601
|
-
module_eval(<<'.,.,', 'parser.y',
|
602
|
-
def
|
564
|
+
module_eval(<<'.,.,', 'parser.y', 86)
|
565
|
+
def _reduce_30(val, _values, result)
|
603
566
|
return make_node(
|
604
567
|
:Field, {
|
605
568
|
name: val[0],
|
@@ -614,8 +577,8 @@ module_eval(<<'.,.,', 'parser.y', 91)
|
|
614
577
|
end
|
615
578
|
.,.,
|
616
579
|
|
617
|
-
module_eval(<<'.,.,', 'parser.y',
|
618
|
-
def
|
580
|
+
module_eval(<<'.,.,', 'parser.y', 97)
|
581
|
+
def _reduce_31(val, _values, result)
|
619
582
|
return make_node(
|
620
583
|
:Field, {
|
621
584
|
alias: val[0],
|
@@ -631,225 +594,219 @@ module_eval(<<'.,.,', 'parser.y', 102)
|
|
631
594
|
end
|
632
595
|
.,.,
|
633
596
|
|
634
|
-
# reduce
|
635
|
-
|
636
|
-
# reduce 36 omitted
|
637
|
-
|
638
|
-
# reduce 37 omitted
|
639
|
-
|
640
|
-
# reduce 38 omitted
|
597
|
+
# reduce 32 omitted
|
641
598
|
|
642
|
-
# reduce
|
599
|
+
# reduce 33 omitted
|
643
600
|
|
644
|
-
# reduce
|
601
|
+
# reduce 34 omitted
|
645
602
|
|
646
|
-
# reduce
|
603
|
+
# reduce 35 omitted
|
647
604
|
|
648
|
-
# reduce
|
605
|
+
# reduce 36 omitted
|
649
606
|
|
650
|
-
# reduce
|
607
|
+
# reduce 37 omitted
|
651
608
|
|
652
|
-
module_eval(<<'.,.,', 'parser.y',
|
653
|
-
def
|
609
|
+
module_eval(<<'.,.,', 'parser.y', 120)
|
610
|
+
def _reduce_38(val, _values, result)
|
654
611
|
return []
|
655
612
|
result
|
656
613
|
end
|
657
614
|
.,.,
|
658
615
|
|
659
|
-
module_eval(<<'.,.,', 'parser.y',
|
660
|
-
def
|
616
|
+
module_eval(<<'.,.,', 'parser.y', 121)
|
617
|
+
def _reduce_39(val, _values, result)
|
661
618
|
return []
|
662
619
|
result
|
663
620
|
end
|
664
621
|
.,.,
|
665
622
|
|
666
|
-
module_eval(<<'.,.,', 'parser.y',
|
667
|
-
def
|
623
|
+
module_eval(<<'.,.,', 'parser.y', 122)
|
624
|
+
def _reduce_40(val, _values, result)
|
668
625
|
return val[1]
|
669
626
|
result
|
670
627
|
end
|
671
628
|
.,.,
|
672
629
|
|
673
|
-
module_eval(<<'.,.,', 'parser.y',
|
674
|
-
def
|
630
|
+
module_eval(<<'.,.,', 'parser.y', 125)
|
631
|
+
def _reduce_41(val, _values, result)
|
675
632
|
return [val[0]]
|
676
633
|
result
|
677
634
|
end
|
678
635
|
.,.,
|
679
636
|
|
680
|
-
module_eval(<<'.,.,', 'parser.y',
|
681
|
-
def
|
637
|
+
module_eval(<<'.,.,', 'parser.y', 126)
|
638
|
+
def _reduce_42(val, _values, result)
|
682
639
|
val[0] << val[1]
|
683
640
|
result
|
684
641
|
end
|
685
642
|
.,.,
|
686
643
|
|
687
|
-
module_eval(<<'.,.,', 'parser.y',
|
688
|
-
def
|
644
|
+
module_eval(<<'.,.,', 'parser.y', 129)
|
645
|
+
def _reduce_43(val, _values, result)
|
689
646
|
return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
|
690
647
|
result
|
691
648
|
end
|
692
649
|
.,.,
|
693
650
|
|
694
|
-
module_eval(<<'.,.,', 'parser.y',
|
695
|
-
def
|
651
|
+
module_eval(<<'.,.,', 'parser.y', 132)
|
652
|
+
def _reduce_44(val, _values, result)
|
696
653
|
return val[0].to_f
|
697
654
|
result
|
698
655
|
end
|
699
656
|
.,.,
|
700
657
|
|
701
|
-
module_eval(<<'.,.,', 'parser.y',
|
702
|
-
def
|
658
|
+
module_eval(<<'.,.,', 'parser.y', 133)
|
659
|
+
def _reduce_45(val, _values, result)
|
703
660
|
return val[0].to_i
|
704
661
|
result
|
705
662
|
end
|
706
663
|
.,.,
|
707
664
|
|
708
|
-
module_eval(<<'.,.,', 'parser.y',
|
709
|
-
def
|
665
|
+
module_eval(<<'.,.,', 'parser.y', 134)
|
666
|
+
def _reduce_46(val, _values, result)
|
710
667
|
return val[0].to_s
|
711
668
|
result
|
712
669
|
end
|
713
670
|
.,.,
|
714
671
|
|
715
|
-
module_eval(<<'.,.,', 'parser.y',
|
716
|
-
def
|
672
|
+
module_eval(<<'.,.,', 'parser.y', 135)
|
673
|
+
def _reduce_47(val, _values, result)
|
717
674
|
return true
|
718
675
|
result
|
719
676
|
end
|
720
677
|
.,.,
|
721
678
|
|
722
|
-
module_eval(<<'.,.,', 'parser.y',
|
723
|
-
def
|
679
|
+
module_eval(<<'.,.,', 'parser.y', 136)
|
680
|
+
def _reduce_48(val, _values, result)
|
724
681
|
return false
|
725
682
|
result
|
726
683
|
end
|
727
684
|
.,.,
|
728
685
|
|
729
|
-
# reduce
|
686
|
+
# reduce 49 omitted
|
730
687
|
|
731
|
-
# reduce
|
688
|
+
# reduce 50 omitted
|
732
689
|
|
733
|
-
# reduce
|
690
|
+
# reduce 51 omitted
|
734
691
|
|
735
|
-
# reduce
|
692
|
+
# reduce 52 omitted
|
736
693
|
|
737
|
-
module_eval(<<'.,.,', 'parser.y',
|
738
|
-
def
|
694
|
+
module_eval(<<'.,.,', 'parser.y', 142)
|
695
|
+
def _reduce_53(val, _values, result)
|
739
696
|
return make_node(:VariableIdentifier, name: val[1], position_source: val[0])
|
740
697
|
result
|
741
698
|
end
|
742
699
|
.,.,
|
743
700
|
|
744
|
-
module_eval(<<'.,.,', 'parser.y',
|
745
|
-
def
|
701
|
+
module_eval(<<'.,.,', 'parser.y', 145)
|
702
|
+
def _reduce_54(val, _values, result)
|
746
703
|
return []
|
747
704
|
result
|
748
705
|
end
|
749
706
|
.,.,
|
750
707
|
|
751
|
-
module_eval(<<'.,.,', 'parser.y',
|
752
|
-
def
|
708
|
+
module_eval(<<'.,.,', 'parser.y', 146)
|
709
|
+
def _reduce_55(val, _values, result)
|
753
710
|
return val[1]
|
754
711
|
result
|
755
712
|
end
|
756
713
|
.,.,
|
757
714
|
|
758
|
-
module_eval(<<'.,.,', 'parser.y',
|
759
|
-
def
|
715
|
+
module_eval(<<'.,.,', 'parser.y', 149)
|
716
|
+
def _reduce_56(val, _values, result)
|
760
717
|
return [val[0]]
|
761
718
|
result
|
762
719
|
end
|
763
720
|
.,.,
|
764
721
|
|
765
|
-
module_eval(<<'.,.,', 'parser.y',
|
766
|
-
def
|
722
|
+
module_eval(<<'.,.,', 'parser.y', 150)
|
723
|
+
def _reduce_57(val, _values, result)
|
767
724
|
val[0] << val[1]
|
768
725
|
result
|
769
726
|
end
|
770
727
|
.,.,
|
771
728
|
|
772
|
-
module_eval(<<'.,.,', 'parser.y',
|
773
|
-
def
|
729
|
+
module_eval(<<'.,.,', 'parser.y', 153)
|
730
|
+
def _reduce_58(val, _values, result)
|
774
731
|
return make_node(:InputObject, arguments: [], position_source: val[0])
|
775
732
|
result
|
776
733
|
end
|
777
734
|
.,.,
|
778
735
|
|
779
|
-
module_eval(<<'.,.,', 'parser.y',
|
780
|
-
def
|
736
|
+
module_eval(<<'.,.,', 'parser.y', 154)
|
737
|
+
def _reduce_59(val, _values, result)
|
781
738
|
return make_node(:InputObject, arguments: val[1], position_source: val[0])
|
782
739
|
result
|
783
740
|
end
|
784
741
|
.,.,
|
785
742
|
|
786
|
-
module_eval(<<'.,.,', 'parser.y',
|
787
|
-
def
|
743
|
+
module_eval(<<'.,.,', 'parser.y', 157)
|
744
|
+
def _reduce_60(val, _values, result)
|
788
745
|
return [val[0]]
|
789
746
|
result
|
790
747
|
end
|
791
748
|
.,.,
|
792
749
|
|
793
|
-
module_eval(<<'.,.,', 'parser.y',
|
794
|
-
def
|
750
|
+
module_eval(<<'.,.,', 'parser.y', 158)
|
751
|
+
def _reduce_61(val, _values, result)
|
795
752
|
val[0] << val[1]
|
796
753
|
result
|
797
754
|
end
|
798
755
|
.,.,
|
799
756
|
|
800
|
-
module_eval(<<'.,.,', 'parser.y',
|
801
|
-
def
|
757
|
+
module_eval(<<'.,.,', 'parser.y', 161)
|
758
|
+
def _reduce_62(val, _values, result)
|
802
759
|
return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
|
803
760
|
result
|
804
761
|
end
|
805
762
|
.,.,
|
806
763
|
|
807
|
-
module_eval(<<'.,.,', 'parser.y',
|
808
|
-
def
|
764
|
+
module_eval(<<'.,.,', 'parser.y', 163)
|
765
|
+
def _reduce_63(val, _values, result)
|
809
766
|
return make_node(:Enum, name: val[0], position_source: val[0])
|
810
767
|
result
|
811
768
|
end
|
812
769
|
.,.,
|
813
770
|
|
814
|
-
module_eval(<<'.,.,', 'parser.y',
|
815
|
-
def
|
771
|
+
module_eval(<<'.,.,', 'parser.y', 166)
|
772
|
+
def _reduce_64(val, _values, result)
|
816
773
|
return []
|
817
774
|
result
|
818
775
|
end
|
819
776
|
.,.,
|
820
777
|
|
821
|
-
# reduce
|
778
|
+
# reduce 65 omitted
|
822
779
|
|
823
|
-
module_eval(<<'.,.,', 'parser.y',
|
824
|
-
def
|
780
|
+
module_eval(<<'.,.,', 'parser.y', 170)
|
781
|
+
def _reduce_66(val, _values, result)
|
825
782
|
return [val[0]]
|
826
783
|
result
|
827
784
|
end
|
828
785
|
.,.,
|
829
786
|
|
830
|
-
module_eval(<<'.,.,', 'parser.y',
|
831
|
-
def
|
787
|
+
module_eval(<<'.,.,', 'parser.y', 171)
|
788
|
+
def _reduce_67(val, _values, result)
|
832
789
|
val[0] << val[1]
|
833
790
|
result
|
834
791
|
end
|
835
792
|
.,.,
|
836
793
|
|
837
|
-
module_eval(<<'.,.,', 'parser.y',
|
838
|
-
def
|
794
|
+
module_eval(<<'.,.,', 'parser.y', 173)
|
795
|
+
def _reduce_68(val, _values, result)
|
839
796
|
return make_node(:Directive, name: val[1], arguments: val[2], position_source: val[0])
|
840
797
|
result
|
841
798
|
end
|
842
799
|
.,.,
|
843
800
|
|
844
|
-
module_eval(<<'.,.,', 'parser.y',
|
845
|
-
def
|
801
|
+
module_eval(<<'.,.,', 'parser.y', 176)
|
802
|
+
def _reduce_69(val, _values, result)
|
846
803
|
return make_node(:FragmentSpread, name: val[1], directives: val[2], position_source: val[0])
|
847
804
|
result
|
848
805
|
end
|
849
806
|
.,.,
|
850
807
|
|
851
|
-
module_eval(<<'.,.,', 'parser.y',
|
852
|
-
def
|
808
|
+
module_eval(<<'.,.,', 'parser.y', 180)
|
809
|
+
def _reduce_70(val, _values, result)
|
853
810
|
return make_node(:InlineFragment, {
|
854
811
|
type: val[2],
|
855
812
|
directives: val[3],
|
@@ -861,8 +818,8 @@ module_eval(<<'.,.,', 'parser.y', 188)
|
|
861
818
|
end
|
862
819
|
.,.,
|
863
820
|
|
864
|
-
module_eval(<<'.,.,', 'parser.y',
|
865
|
-
def
|
821
|
+
module_eval(<<'.,.,', 'parser.y', 188)
|
822
|
+
def _reduce_71(val, _values, result)
|
866
823
|
return make_node(:InlineFragment, {
|
867
824
|
type: nil,
|
868
825
|
directives: val[1],
|
@@ -874,8 +831,8 @@ module_eval(<<'.,.,', 'parser.y', 196)
|
|
874
831
|
end
|
875
832
|
.,.,
|
876
833
|
|
877
|
-
module_eval(<<'.,.,', 'parser.y',
|
878
|
-
def
|
834
|
+
module_eval(<<'.,.,', 'parser.y', 198)
|
835
|
+
def _reduce_72(val, _values, result)
|
879
836
|
return make_node(:FragmentDefinition, {
|
880
837
|
name: val[1],
|
881
838
|
type: val[3],
|