graphql 1.5.13 → 1.5.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68f3728c4d164599a943599551db20d7add67e5d
4
- data.tar.gz: 86b930739f630566edbaeb9b024e6461f5a30627
3
+ metadata.gz: 52c3a037cffdd261304a07f17e427b35de5d7806
4
+ data.tar.gz: '081c7064bb76ddb0b3829a4efb3f0c3c6a91337c'
5
5
  SHA512:
6
- metadata.gz: bdaf08df4286ec916b87839a354eb7d21bf822d49462a659a5e634210065baac1a5553a3dec3003b6c24bd5c8f4ab894f0796603883d4f87d7024ddffef87ece
7
- data.tar.gz: b64f7d422547af515ee634f885dd6f5fc990478ef84c65e5bd244e8b889fb206ae7aa4843309723a8ab2a9baf47cf01a30226b4c6bb6c2b952d298b0cb120942
6
+ metadata.gz: e579bc6f36376d75b2760de68da8dd7d22623993977d295d6656021dda740a02df6241e32c04c71ff2c18963b16a183c3f3dc286628ca414a800d3d619bc0947
7
+ data.tar.gz: 90096a42e99d15a6a492b93a8ebb65bf01bf213335950c8c13274f356715ab1fac8958b06dc562f6a0dae857ffabdb2c9976f0b43eec741aa449925f32107071
@@ -279,7 +279,7 @@ module GraphQL
279
279
  @key = key
280
280
  end
281
281
 
282
- def call(defn, value)
282
+ def call(defn, value = true)
283
283
  defn.metadata[@key] = value
284
284
  end
285
285
  end
@@ -28,7 +28,7 @@ module GraphQL
28
28
  #
29
29
  # @example Defining an enum input
30
30
  # field :coders, types[CoderType] do
31
- # argument :knowing, types[LanguageType]
31
+ # argument :knowing, types[LanguageEnum]
32
32
  # resolve ->(obj, args, ctx) {
33
33
  # Coder.where(language: args[:knowing])
34
34
  # }
@@ -1,1064 +1,1333 @@
1
-
2
- # line 1 "lib/graphql/language/lexer.rl"
3
-
4
- # line 98 "lib/graphql/language/lexer.rl"
5
-
6
-
7
-
8
1
  module GraphQL
9
- module Language
10
- module Lexer
11
- def self.tokenize(query_string)
12
- run_lexer(query_string)
13
- end
2
+ module Language
3
+ module Lexer
4
+ def self.tokenize(query_string)
5
+ run_lexer(query_string)
6
+ end
14
7
 
15
- # Replace any escaped unicode or whitespace with the _actual_ characters
16
- # To avoid allocating more strings, this modifies the string passed into it
17
- def self.replace_escaped_characters_in_place(raw_string)
18
- raw_string.gsub!(ESCAPES, ESCAPES_REPLACE)
19
- raw_string.gsub!(UTF_8, &UTF_8_REPLACE)
20
- nil
21
- end
8
+ # Replace any escaped unicode or whitespace with the _actual_ characters
9
+ # To avoid allocating more strings, this modifies the string passed into it
10
+ def self.replace_escaped_characters_in_place(raw_string)
11
+ raw_string.gsub!(ESCAPES, ESCAPES_REPLACE)
12
+ raw_string.gsub!(UTF_8, &UTF_8_REPLACE)
13
+ nil
14
+ end
22
15
 
23
- private
16
+ private
24
17
 
25
-
26
- # line 27 "lib/graphql/language/lexer.rb"
27
18
  class << self
28
- attr_accessor :_graphql_lexer_actions
29
- private :_graphql_lexer_actions, :_graphql_lexer_actions=
19
+ attr_accessor :_graphql_lexer_trans_keys
20
+ private :_graphql_lexer_trans_keys, :_graphql_lexer_trans_keys=
30
21
  end
31
- self._graphql_lexer_actions = [
32
- 0, 1, 0, 1, 1, 1, 2, 1,
33
- 25, 1, 26, 1, 27, 1, 28, 1,
34
- 29, 1, 30, 1, 31, 1, 32, 1,
35
- 33, 1, 34, 1, 35, 1, 36, 1,
36
- 37, 1, 38, 1, 39, 1, 40, 1,
37
- 41, 1, 42, 1, 43, 1, 44, 1,
38
- 45, 1, 46, 1, 47, 1, 48, 1,
39
- 49, 2, 2, 3, 2, 2, 4, 2,
40
- 2, 5, 2, 2, 6, 2, 2, 7,
41
- 2, 2, 8, 2, 2, 9, 2, 2,
42
- 10, 2, 2, 11, 2, 2, 12, 2,
43
- 2, 13, 2, 2, 14, 2, 2, 15,
44
- 2, 2, 16, 2, 2, 17, 2, 2,
45
- 18, 2, 2, 19, 2, 2, 20, 2,
46
- 2, 21, 2, 2, 22, 2, 2, 23,
47
- 2, 2, 24
22
+ self._graphql_lexer_trans_keys = [
23
+ 4, 20, 4, 20, 12, 13, 12, 13, 9, 13, 11, 11, 0, 45, 0, 0, 4, 20, 1, 1, 12, 13, 9, 26, 12, 13, 9, 26, 9, 26, 11, 11, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 12, 42, 0 ,
48
24
  ]
49
25
 
50
26
  class << self
51
- attr_accessor :_graphql_lexer_key_offsets
52
- private :_graphql_lexer_key_offsets, :_graphql_lexer_key_offsets=
27
+ attr_accessor :_graphql_lexer_char_class
28
+ private :_graphql_lexer_char_class, :_graphql_lexer_char_class=
53
29
  end
54
- self._graphql_lexer_key_offsets = [
55
- 0, 2, 4, 6, 8, 12, 13, 53,
56
- 56, 58, 60, 63, 70, 72, 78, 85,
57
- 86, 93, 101, 109, 117, 125, 133, 141,
58
- 149, 157, 165, 173, 181, 190, 198, 206,
59
- 214, 222, 230, 238, 246, 254, 262, 271,
60
- 279, 287, 295, 303, 311, 319, 327, 335,
61
- 344, 352, 360, 368, 376, 384, 392, 400,
62
- 408, 416, 424, 432, 440, 448, 456, 464,
63
- 472, 480, 488, 496, 504, 512, 520, 528,
64
- 537, 546, 554, 562, 570, 578, 586, 594,
65
- 602, 610, 618, 626, 634, 642, 650, 658,
66
- 666, 674, 683, 691, 699, 707, 715, 723,
67
- 731, 739
30
+ self._graphql_lexer_char_class = [
31
+ 0, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 3, 4, 5, 6, 2, 2, 2, 7, 8, 2, 9, 0, 10, 11, 2, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 2, 2, 15, 2, 2, 16, 17, 17, 17, 17, 18, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 19, 20, 21, 2, 17, 2, 22, 23, 24, 25, 26, 27, 28, 29, 30, 17, 17, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 17, 17, 42, 17, 43, 44, 45, 0 ,
68
32
  ]
69
33
 
70
34
  class << self
71
- attr_accessor :_graphql_lexer_trans_keys
72
- private :_graphql_lexer_trans_keys, :_graphql_lexer_trans_keys=
35
+ attr_accessor :_graphql_lexer_index_offsets
36
+ private :_graphql_lexer_index_offsets, :_graphql_lexer_index_offsets=
73
37
  end
74
- self._graphql_lexer_trans_keys = [
75
- 34, 92, 34, 92, 48, 57, 48, 57,
76
- 43, 45, 48, 57, 46, 9, 10, 13,
77
- 32, 33, 34, 35, 36, 40, 41, 44,
78
- 45, 46, 48, 58, 61, 64, 91, 93,
79
- 95, 100, 101, 102, 105, 109, 110, 111,
80
- 113, 115, 116, 117, 123, 124, 125, 49,
81
- 57, 65, 90, 97, 122, 9, 32, 44,
82
- 34, 92, 10, 13, 48, 49, 57, 43,
83
- 45, 46, 69, 101, 48, 57, 48, 57,
84
- 43, 45, 69, 101, 48, 57, 43, 45,
85
- 46, 69, 101, 48, 57, 46, 95, 48,
86
- 57, 65, 90, 97, 122, 95, 105, 48,
87
- 57, 65, 90, 97, 122, 95, 114, 48,
88
- 57, 65, 90, 97, 122, 95, 101, 48,
89
- 57, 65, 90, 97, 122, 95, 99, 48,
90
- 57, 65, 90, 97, 122, 95, 116, 48,
91
- 57, 65, 90, 97, 122, 95, 105, 48,
92
- 57, 65, 90, 97, 122, 95, 118, 48,
93
- 57, 65, 90, 97, 122, 95, 101, 48,
94
- 57, 65, 90, 97, 122, 95, 110, 48,
95
- 57, 65, 90, 97, 122, 95, 117, 48,
96
- 57, 65, 90, 97, 122, 95, 109, 48,
97
- 57, 65, 90, 97, 122, 95, 97, 114,
98
- 48, 57, 65, 90, 98, 122, 95, 108,
99
- 48, 57, 65, 90, 97, 122, 95, 115,
100
- 48, 57, 65, 90, 97, 122, 95, 101,
101
- 48, 57, 65, 90, 97, 122, 95, 97,
102
- 48, 57, 65, 90, 98, 122, 95, 103,
103
- 48, 57, 65, 90, 97, 122, 95, 109,
104
- 48, 57, 65, 90, 97, 122, 95, 101,
105
- 48, 57, 65, 90, 97, 122, 95, 110,
106
- 48, 57, 65, 90, 97, 122, 95, 116,
107
- 48, 57, 65, 90, 97, 122, 95, 109,
108
- 110, 48, 57, 65, 90, 97, 122, 95,
109
- 112, 48, 57, 65, 90, 97, 122, 95,
110
- 108, 48, 57, 65, 90, 97, 122, 95,
111
- 101, 48, 57, 65, 90, 97, 122, 95,
112
- 109, 48, 57, 65, 90, 97, 122, 95,
113
- 101, 48, 57, 65, 90, 97, 122, 95,
114
- 110, 48, 57, 65, 90, 97, 122, 95,
115
- 116, 48, 57, 65, 90, 97, 122, 95,
116
- 115, 48, 57, 65, 90, 97, 122, 95,
117
- 112, 116, 48, 57, 65, 90, 97, 122,
118
- 95, 117, 48, 57, 65, 90, 97, 122,
119
- 95, 116, 48, 57, 65, 90, 97, 122,
120
- 95, 101, 48, 57, 65, 90, 97, 122,
121
- 95, 114, 48, 57, 65, 90, 97, 122,
122
- 95, 102, 48, 57, 65, 90, 97, 122,
123
- 95, 97, 48, 57, 65, 90, 98, 122,
124
- 95, 99, 48, 57, 65, 90, 97, 122,
125
- 95, 101, 48, 57, 65, 90, 97, 122,
126
- 95, 117, 48, 57, 65, 90, 97, 122,
127
- 95, 116, 48, 57, 65, 90, 97, 122,
128
- 95, 97, 48, 57, 65, 90, 98, 122,
129
- 95, 116, 48, 57, 65, 90, 97, 122,
130
- 95, 105, 48, 57, 65, 90, 97, 122,
131
- 95, 111, 48, 57, 65, 90, 97, 122,
132
- 95, 110, 48, 57, 65, 90, 97, 122,
133
- 95, 117, 48, 57, 65, 90, 97, 122,
134
- 95, 108, 48, 57, 65, 90, 97, 122,
135
- 95, 108, 48, 57, 65, 90, 97, 122,
136
- 95, 110, 48, 57, 65, 90, 97, 122,
137
- 95, 117, 48, 57, 65, 90, 97, 122,
138
- 95, 101, 48, 57, 65, 90, 97, 122,
139
- 95, 114, 48, 57, 65, 90, 97, 122,
140
- 95, 121, 48, 57, 65, 90, 97, 122,
141
- 95, 99, 117, 48, 57, 65, 90, 97,
142
- 122, 95, 97, 104, 48, 57, 65, 90,
143
- 98, 122, 95, 108, 48, 57, 65, 90,
144
- 97, 122, 95, 97, 48, 57, 65, 90,
145
- 98, 122, 95, 114, 48, 57, 65, 90,
146
- 97, 122, 95, 101, 48, 57, 65, 90,
147
- 97, 122, 95, 109, 48, 57, 65, 90,
148
- 97, 122, 95, 97, 48, 57, 65, 90,
149
- 98, 122, 95, 98, 48, 57, 65, 90,
150
- 97, 122, 95, 115, 48, 57, 65, 90,
151
- 97, 122, 95, 99, 48, 57, 65, 90,
152
- 97, 122, 95, 114, 48, 57, 65, 90,
153
- 97, 122, 95, 105, 48, 57, 65, 90,
154
- 97, 122, 95, 112, 48, 57, 65, 90,
155
- 97, 122, 95, 116, 48, 57, 65, 90,
156
- 97, 122, 95, 105, 48, 57, 65, 90,
157
- 97, 122, 95, 111, 48, 57, 65, 90,
158
- 97, 122, 95, 110, 48, 57, 65, 90,
159
- 97, 122, 95, 114, 121, 48, 57, 65,
160
- 90, 97, 122, 95, 117, 48, 57, 65,
161
- 90, 97, 122, 95, 101, 48, 57, 65,
162
- 90, 97, 122, 95, 112, 48, 57, 65,
163
- 90, 97, 122, 95, 101, 48, 57, 65,
164
- 90, 97, 122, 95, 110, 48, 57, 65,
165
- 90, 97, 122, 95, 105, 48, 57, 65,
166
- 90, 97, 122, 95, 111, 48, 57, 65,
167
- 90, 97, 122, 95, 110, 48, 57, 65,
168
- 90, 97, 122, 0
38
+ self._graphql_lexer_index_offsets = [
39
+ 0, 17, 34, 36, 38, 43, 44, 90, 91, 108, 109, 111, 129, 131, 149, 167, 168, 199, 230, 261, 292, 323, 354, 385, 416, 447, 478, 509, 540, 571, 602, 633, 664, 695, 726, 757, 788, 819, 850, 881, 912, 943, 974, 1005, 1036, 1067, 1098, 1129, 1160, 1191, 1222, 1253, 1284, 1315, 1346, 1377, 1408, 1439, 1470, 1501, 1532, 1563, 1594, 1625, 1656, 1687, 1718, 1749, 1780, 1811, 1842, 1873, 1904, 1935, 1966, 1997, 2028, 2059, 2090, 2121, 2152, 2183, 2214, 2245, 2276, 2307, 2338, 2369, 2400, 2431, 2462, 2493, 2524, 2555, 2586, 2617, 2648, 2679, 0 ,
169
40
  ]
170
41
 
171
42
  class << self
172
- attr_accessor :_graphql_lexer_single_lengths
173
- private :_graphql_lexer_single_lengths, :_graphql_lexer_single_lengths=
43
+ attr_accessor :_graphql_lexer_indicies
44
+ private :_graphql_lexer_indicies, :_graphql_lexer_indicies=
174
45
  end
175
- self._graphql_lexer_single_lengths = [
176
- 2, 2, 0, 0, 2, 1, 34, 3,
177
- 2, 2, 1, 5, 0, 4, 5, 1,
178
- 1, 2, 2, 2, 2, 2, 2, 2,
179
- 2, 2, 2, 2, 3, 2, 2, 2,
180
- 2, 2, 2, 2, 2, 2, 3, 2,
181
- 2, 2, 2, 2, 2, 2, 2, 3,
182
- 2, 2, 2, 2, 2, 2, 2, 2,
183
- 2, 2, 2, 2, 2, 2, 2, 2,
184
- 2, 2, 2, 2, 2, 2, 2, 3,
185
- 3, 2, 2, 2, 2, 2, 2, 2,
186
- 2, 2, 2, 2, 2, 2, 2, 2,
187
- 2, 3, 2, 2, 2, 2, 2, 2,
188
- 2, 2
46
+ self._graphql_lexer_indicies = [
47
+ 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 5, 7, 7, 8, 8, 0, 5, 5, 10, 12, 13, 11, 14, 15, 16, 17, 18, 19, 11, 20, 21, 22, 23, 24, 25, 26, 27, 27, 28, 11, 29, 27, 27, 27, 30, 31, 32, 27, 27, 33, 27, 34, 35, 36, 27, 37, 27, 38, 39, 40, 27, 27, 41, 42, 43, 12, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 45, 22, 23, 8, 8, 48, 5, 5, 47, 47, 47, 47, 49, 47, 47, 47, 47, 47, 47, 47, 49, 5, 5, 8, 8, 50, 7, 7, 50, 50, 50, 50, 49, 50, 50, 50, 50, 50, 50, 50, 49, 8, 8, 48, 23, 23, 47, 47, 47, 47, 49, 47, 47, 47, 47, 47, 47, 47, 49, 51, 27, 27, 0, 0, 0, 27, 27, 0, 0, 0, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 53, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 54, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 55, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 56, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 57, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 58, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 59, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 60, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 61, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 62, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 63, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 64, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 65, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 66, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 67, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 68, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 69, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 70, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 71, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 72, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 73, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 74, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 75, 76, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 77, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 78, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 79, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 80, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 81, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 82, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 83, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 84, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 85, 27, 27, 27, 86, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 87, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 88, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 89, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 90, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 91, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 92, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 93, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 94, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 95, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 96, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 97, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 98, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 99, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 100, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 101, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 102, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 103, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 104, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 105, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 106, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 107, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 108, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 109, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 110, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 111, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 112, 27, 27, 27, 27, 27, 27, 113, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 114, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 115, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 116, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 117, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 118, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 119, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 120, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 121, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 122, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 123, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 124, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 125, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 126, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 127, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 128, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 129, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 130, 27, 27, 27, 27, 131, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 132, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 133, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 134, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 135, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 136, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 137, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 138, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 52, 52, 52, 27, 27, 52, 52, 52, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 139, 27, 27, 27, 27, 27, 27, 27, 27, 27, 0 ,
189
48
  ]
190
49
 
191
50
  class << self
192
- attr_accessor :_graphql_lexer_range_lengths
193
- private :_graphql_lexer_range_lengths, :_graphql_lexer_range_lengths=
51
+ attr_accessor :_graphql_lexer_index_defaults
52
+ private :_graphql_lexer_index_defaults, :_graphql_lexer_index_defaults=
194
53
  end
195
- self._graphql_lexer_range_lengths = [
196
- 0, 0, 1, 1, 1, 0, 3, 0,
197
- 0, 0, 1, 1, 1, 1, 1, 0,
198
- 3, 3, 3, 3, 3, 3, 3, 3,
199
- 3, 3, 3, 3, 3, 3, 3, 3,
200
- 3, 3, 3, 3, 3, 3, 3, 3,
201
- 3, 3, 3, 3, 3, 3, 3, 3,
202
- 3, 3, 3, 3, 3, 3, 3, 3,
203
- 3, 3, 3, 3, 3, 3, 3, 3,
204
- 3, 3, 3, 3, 3, 3, 3, 3,
205
- 3, 3, 3, 3, 3, 3, 3, 3,
206
- 3, 3, 3, 3, 3, 3, 3, 3,
207
- 3, 3, 3, 3, 3, 3, 3, 3,
208
- 3, 3
54
+ self._graphql_lexer_index_defaults = [
55
+ 1, 1, 0, 6, 0, 9, 11, 44, 1, 16, 46, 47, 50, 50, 47, 46, 0, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 0 ,
209
56
  ]
210
57
 
211
58
  class << self
212
- attr_accessor :_graphql_lexer_index_offsets
213
- private :_graphql_lexer_index_offsets, :_graphql_lexer_index_offsets=
59
+ attr_accessor :_graphql_lexer_trans_cond_spaces
60
+ private :_graphql_lexer_trans_cond_spaces, :_graphql_lexer_trans_cond_spaces=
214
61
  end
215
- self._graphql_lexer_index_offsets = [
216
- 0, 3, 6, 8, 10, 14, 16, 54,
217
- 58, 61, 64, 67, 74, 76, 82, 89,
218
- 91, 96, 102, 108, 114, 120, 126, 132,
219
- 138, 144, 150, 156, 162, 169, 175, 181,
220
- 187, 193, 199, 205, 211, 217, 223, 230,
221
- 236, 242, 248, 254, 260, 266, 272, 278,
222
- 285, 291, 297, 303, 309, 315, 321, 327,
223
- 333, 339, 345, 351, 357, 363, 369, 375,
224
- 381, 387, 393, 399, 405, 411, 417, 423,
225
- 430, 437, 443, 449, 455, 461, 467, 473,
226
- 479, 485, 491, 497, 503, 509, 515, 521,
227
- 527, 533, 540, 546, 552, 558, 564, 570,
228
- 576, 582
62
+ self._graphql_lexer_trans_cond_spaces = [
63
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0 ,
229
64
  ]
230
65
 
231
66
  class << self
232
- attr_accessor :_graphql_lexer_trans_targs
233
- private :_graphql_lexer_trans_targs, :_graphql_lexer_trans_targs=
67
+ attr_accessor :_graphql_lexer_cond_targs
68
+ private :_graphql_lexer_cond_targs, :_graphql_lexer_cond_targs=
234
69
  end
235
- self._graphql_lexer_trans_targs = [
236
- 6, 1, 0, 8, 1, 0, 12, 6,
237
- 13, 6, 2, 2, 12, 6, 6, 6,
238
- 7, 6, 6, 7, 6, 8, 9, 6,
239
- 6, 6, 7, 10, 15, 11, 6, 6,
240
- 6, 6, 6, 16, 17, 25, 28, 38,
241
- 56, 63, 66, 67, 71, 89, 94, 6,
242
- 6, 6, 14, 16, 16, 6, 7, 7,
243
- 7, 6, 6, 1, 0, 6, 6, 9,
244
- 11, 14, 6, 2, 2, 3, 4, 4,
245
- 12, 6, 12, 6, 2, 2, 4, 4,
246
- 13, 6, 2, 2, 3, 4, 4, 14,
247
- 6, 5, 6, 16, 16, 16, 16, 6,
248
- 16, 18, 16, 16, 16, 6, 16, 19,
249
- 16, 16, 16, 6, 16, 20, 16, 16,
250
- 16, 6, 16, 21, 16, 16, 16, 6,
251
- 16, 22, 16, 16, 16, 6, 16, 23,
252
- 16, 16, 16, 6, 16, 24, 16, 16,
253
- 16, 6, 16, 16, 16, 16, 16, 6,
254
- 16, 26, 16, 16, 16, 6, 16, 27,
255
- 16, 16, 16, 6, 16, 16, 16, 16,
256
- 16, 6, 16, 29, 32, 16, 16, 16,
257
- 6, 16, 30, 16, 16, 16, 6, 16,
258
- 31, 16, 16, 16, 6, 16, 16, 16,
259
- 16, 16, 6, 16, 33, 16, 16, 16,
260
- 6, 16, 34, 16, 16, 16, 6, 16,
261
- 35, 16, 16, 16, 6, 16, 36, 16,
262
- 16, 16, 6, 16, 37, 16, 16, 16,
263
- 6, 16, 16, 16, 16, 16, 6, 16,
264
- 39, 47, 16, 16, 16, 6, 16, 40,
265
- 16, 16, 16, 6, 16, 41, 16, 16,
266
- 16, 6, 16, 42, 16, 16, 16, 6,
267
- 16, 43, 16, 16, 16, 6, 16, 44,
268
- 16, 16, 16, 6, 16, 45, 16, 16,
269
- 16, 6, 16, 46, 16, 16, 16, 6,
270
- 16, 16, 16, 16, 16, 6, 16, 48,
271
- 50, 16, 16, 16, 6, 16, 49, 16,
272
- 16, 16, 6, 16, 16, 16, 16, 16,
273
- 6, 16, 51, 16, 16, 16, 6, 16,
274
- 52, 16, 16, 16, 6, 16, 53, 16,
275
- 16, 16, 6, 16, 54, 16, 16, 16,
276
- 6, 16, 55, 16, 16, 16, 6, 16,
277
- 16, 16, 16, 16, 6, 16, 57, 16,
278
- 16, 16, 6, 16, 58, 16, 16, 16,
279
- 6, 16, 59, 16, 16, 16, 6, 16,
280
- 60, 16, 16, 16, 6, 16, 61, 16,
281
- 16, 16, 6, 16, 62, 16, 16, 16,
282
- 6, 16, 16, 16, 16, 16, 6, 16,
283
- 64, 16, 16, 16, 6, 16, 65, 16,
284
- 16, 16, 6, 16, 16, 16, 16, 16,
285
- 6, 16, 16, 16, 16, 16, 6, 16,
286
- 68, 16, 16, 16, 6, 16, 69, 16,
287
- 16, 16, 6, 16, 70, 16, 16, 16,
288
- 6, 16, 16, 16, 16, 16, 6, 16,
289
- 72, 79, 16, 16, 16, 6, 16, 73,
290
- 76, 16, 16, 16, 6, 16, 74, 16,
291
- 16, 16, 6, 16, 75, 16, 16, 16,
292
- 6, 16, 16, 16, 16, 16, 6, 16,
293
- 77, 16, 16, 16, 6, 16, 78, 16,
294
- 16, 16, 6, 16, 16, 16, 16, 16,
295
- 6, 16, 80, 16, 16, 16, 6, 16,
296
- 81, 16, 16, 16, 6, 16, 82, 16,
297
- 16, 16, 6, 16, 83, 16, 16, 16,
298
- 6, 16, 84, 16, 16, 16, 6, 16,
299
- 85, 16, 16, 16, 6, 16, 86, 16,
300
- 16, 16, 6, 16, 87, 16, 16, 16,
301
- 6, 16, 88, 16, 16, 16, 6, 16,
302
- 16, 16, 16, 16, 6, 16, 90, 92,
303
- 16, 16, 16, 6, 16, 91, 16, 16,
304
- 16, 6, 16, 16, 16, 16, 16, 6,
305
- 16, 93, 16, 16, 16, 6, 16, 16,
306
- 16, 16, 16, 6, 16, 95, 16, 16,
307
- 16, 6, 16, 96, 16, 16, 16, 6,
308
- 16, 97, 16, 16, 16, 6, 16, 16,
309
- 16, 16, 16, 6, 6, 6, 6, 6,
310
- 6, 6, 6, 6, 6, 6, 6, 6,
311
- 6, 6, 6, 6, 6, 6, 6, 6,
312
- 6, 6, 6, 6, 6, 6, 6, 6,
313
- 6, 6, 6, 6, 6, 6, 6, 6,
314
- 6, 6, 6, 6, 6, 6, 6, 6,
315
- 6, 6, 6, 6, 6, 6, 6, 6,
316
- 6, 6, 6, 6, 6, 6, 6, 6,
317
- 6, 6, 6, 6, 6, 6, 6, 6,
318
- 6, 6, 6, 6, 6, 6, 6, 6,
319
- 6, 6, 6, 6, 6, 6, 6, 6,
320
- 6, 6, 6, 6, 6, 6, 6, 6,
321
- 6, 6, 6, 6, 6, 0
70
+ self._graphql_lexer_cond_targs = [
71
+ 6, 0, 6, 1, 8, 12, 6, 13, 2, 6, 6, 6, 7, 6, 6, 8, 9, 6, 6, 6, 10, 15, 11, 14, 6, 6, 6, 16, 6, 6, 17, 25, 28, 38, 56, 63, 66, 67, 71, 89, 94, 6, 6, 6, 6, 6, 6, 6, 3, 4, 6, 5, 6, 18, 19, 20, 21, 22, 23, 24, 16, 26, 27, 16, 29, 32, 30, 31, 16, 33, 34, 35, 36, 37, 16, 39, 47, 40, 41, 42, 43, 44, 45, 46, 16, 48, 50, 49, 16, 51, 52, 53, 54, 55, 16, 57, 58, 59, 60, 61, 62, 16, 64, 65, 16, 16, 68, 69, 70, 16, 72, 79, 73, 76, 74, 75, 16, 77, 78, 16, 80, 81, 82, 83, 84, 85, 86, 87, 88, 16, 90, 92, 91, 16, 93, 16, 95, 96, 97, 16, 0 ,
322
72
  ]
323
73
 
324
74
  class << self
325
- attr_accessor :_graphql_lexer_trans_actions
326
- private :_graphql_lexer_trans_actions, :_graphql_lexer_trans_actions=
75
+ attr_accessor :_graphql_lexer_cond_actions
76
+ private :_graphql_lexer_cond_actions, :_graphql_lexer_cond_actions=
327
77
  end
328
- self._graphql_lexer_trans_actions = [
329
- 21, 0, 0, 114, 0, 0, 0, 55,
330
- 60, 51, 0, 0, 0, 55, 27, 53,
331
- 0, 35, 35, 0, 31, 120, 0, 23,
332
- 13, 11, 0, 0, 5, 57, 19, 29,
333
- 25, 17, 15, 117, 0, 0, 0, 0,
334
- 0, 0, 0, 0, 0, 0, 0, 9,
335
- 33, 7, 57, 117, 117, 37, 0, 0,
336
- 0, 47, 21, 0, 0, 45, 45, 0,
337
- 57, 57, 49, 0, 0, 0, 0, 0,
338
- 0, 39, 0, 41, 0, 0, 0, 0,
339
- 60, 41, 0, 0, 0, 0, 0, 57,
340
- 39, 0, 49, 117, 117, 117, 117, 55,
341
- 117, 0, 117, 117, 117, 43, 117, 0,
342
- 117, 117, 117, 43, 117, 0, 117, 117,
343
- 117, 43, 117, 0, 117, 117, 117, 43,
344
- 117, 0, 117, 117, 117, 43, 117, 0,
345
- 117, 117, 117, 43, 117, 0, 117, 117,
346
- 117, 43, 117, 111, 117, 117, 117, 43,
347
- 117, 0, 117, 117, 117, 43, 117, 0,
348
- 117, 117, 117, 43, 117, 105, 117, 117,
349
- 117, 43, 117, 0, 0, 117, 117, 117,
350
- 43, 117, 0, 117, 117, 117, 43, 117,
351
- 0, 117, 117, 117, 43, 117, 72, 117,
352
- 117, 117, 43, 117, 0, 117, 117, 117,
353
- 43, 117, 0, 117, 117, 117, 43, 117,
354
- 0, 117, 117, 117, 43, 117, 0, 117,
355
- 117, 117, 43, 117, 0, 117, 117, 117,
356
- 43, 117, 66, 117, 117, 117, 43, 117,
357
- 0, 0, 117, 117, 117, 43, 117, 0,
358
- 117, 117, 117, 43, 117, 0, 117, 117,
359
- 117, 43, 117, 0, 117, 117, 117, 43,
360
- 117, 0, 117, 117, 117, 43, 117, 0,
361
- 117, 117, 117, 43, 117, 0, 117, 117,
362
- 117, 43, 117, 0, 117, 117, 117, 43,
363
- 117, 96, 117, 117, 117, 43, 117, 0,
364
- 0, 117, 117, 117, 43, 117, 0, 117,
365
- 117, 117, 43, 117, 108, 117, 117, 117,
366
- 43, 117, 0, 117, 117, 117, 43, 117,
367
- 0, 117, 117, 117, 43, 117, 0, 117,
368
- 117, 117, 43, 117, 0, 117, 117, 117,
369
- 43, 117, 0, 117, 117, 117, 43, 117,
370
- 99, 117, 117, 117, 43, 117, 0, 117,
371
- 117, 117, 43, 117, 0, 117, 117, 117,
372
- 43, 117, 0, 117, 117, 117, 43, 117,
373
- 0, 117, 117, 117, 43, 117, 0, 117,
374
- 117, 117, 43, 117, 0, 117, 117, 117,
375
- 43, 117, 81, 117, 117, 117, 43, 117,
376
- 0, 117, 117, 117, 43, 117, 0, 117,
377
- 117, 117, 43, 117, 75, 117, 117, 117,
378
- 43, 117, 63, 117, 117, 117, 43, 117,
379
- 0, 117, 117, 117, 43, 117, 0, 117,
380
- 117, 117, 43, 117, 0, 117, 117, 117,
381
- 43, 117, 78, 117, 117, 117, 43, 117,
382
- 0, 0, 117, 117, 117, 43, 117, 0,
383
- 0, 117, 117, 117, 43, 117, 0, 117,
384
- 117, 117, 43, 117, 0, 117, 117, 117,
385
- 43, 117, 90, 117, 117, 117, 43, 117,
386
- 0, 117, 117, 117, 43, 117, 0, 117,
387
- 117, 117, 43, 117, 87, 117, 117, 117,
388
- 43, 117, 0, 117, 117, 117, 43, 117,
389
- 0, 117, 117, 117, 43, 117, 0, 117,
390
- 117, 117, 43, 117, 0, 117, 117, 117,
391
- 43, 117, 0, 117, 117, 117, 43, 117,
392
- 0, 117, 117, 117, 43, 117, 0, 117,
393
- 117, 117, 43, 117, 0, 117, 117, 117,
394
- 43, 117, 0, 117, 117, 117, 43, 117,
395
- 84, 117, 117, 117, 43, 117, 0, 0,
396
- 117, 117, 117, 43, 117, 0, 117, 117,
397
- 117, 43, 117, 69, 117, 117, 117, 43,
398
- 117, 0, 117, 117, 117, 43, 117, 93,
399
- 117, 117, 117, 43, 117, 0, 117, 117,
400
- 117, 43, 117, 0, 117, 117, 117, 43,
401
- 117, 0, 117, 117, 117, 43, 117, 102,
402
- 117, 117, 117, 43, 55, 55, 55, 51,
403
- 55, 53, 47, 55, 45, 49, 39, 41,
404
- 41, 39, 49, 55, 43, 43, 43, 43,
405
- 43, 43, 43, 43, 43, 43, 43, 43,
406
- 43, 43, 43, 43, 43, 43, 43, 43,
407
- 43, 43, 43, 43, 43, 43, 43, 43,
408
- 43, 43, 43, 43, 43, 43, 43, 43,
409
- 43, 43, 43, 43, 43, 43, 43, 43,
410
- 43, 43, 43, 43, 43, 43, 43, 43,
411
- 43, 43, 43, 43, 43, 43, 43, 43,
412
- 43, 43, 43, 43, 43, 43, 43, 43,
413
- 43, 43, 43, 43, 43, 43, 43, 43,
414
- 43, 43, 43, 43, 43, 0
78
+ self._graphql_lexer_cond_actions = [
79
+ 1, 0, 2, 0, 3, 0, 4, 5, 0, 6, 7, 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, 17, 18, 18, 19, 20, 21, 22, 23, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 26, 27, 28, 29, 30, 31, 0, 0, 32, 0, 33, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 35, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 0, 39, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 41, 0, 0, 42, 43, 0, 0, 0, 44, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 48, 0, 49, 0, 0, 0, 50, 0 ,
415
80
  ]
416
81
 
417
82
  class << self
418
- attr_accessor :_graphql_lexer_to_state_actions
83
+ attr_accessor :_graphql_lexer_to_state_actions
419
84
  private :_graphql_lexer_to_state_actions, :_graphql_lexer_to_state_actions=
420
85
  end
421
86
  self._graphql_lexer_to_state_actions = [
422
- 0, 0, 0, 0, 0, 0, 1, 0,
423
- 0, 0, 0, 0, 0, 0, 0, 0,
424
- 0, 0, 0, 0, 0, 0, 0, 0,
425
- 0, 0, 0, 0, 0, 0, 0, 0,
426
- 0, 0, 0, 0, 0, 0, 0, 0,
427
- 0, 0, 0, 0, 0, 0, 0, 0,
428
- 0, 0, 0, 0, 0, 0, 0, 0,
429
- 0, 0, 0, 0, 0, 0, 0, 0,
430
- 0, 0, 0, 0, 0, 0, 0, 0,
431
- 0, 0, 0, 0, 0, 0, 0, 0,
432
- 0, 0, 0, 0, 0, 0, 0, 0,
433
- 0, 0, 0, 0, 0, 0, 0, 0,
434
- 0, 0
87
+ 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,
435
88
  ]
436
89
 
437
90
  class << self
438
- attr_accessor :_graphql_lexer_from_state_actions
91
+ attr_accessor :_graphql_lexer_from_state_actions
439
92
  private :_graphql_lexer_from_state_actions, :_graphql_lexer_from_state_actions=
440
93
  end
441
94
  self._graphql_lexer_from_state_actions = [
442
- 0, 0, 0, 0, 0, 0, 3, 0,
443
- 0, 0, 0, 0, 0, 0, 0, 0,
444
- 0, 0, 0, 0, 0, 0, 0, 0,
445
- 0, 0, 0, 0, 0, 0, 0, 0,
446
- 0, 0, 0, 0, 0, 0, 0, 0,
447
- 0, 0, 0, 0, 0, 0, 0, 0,
448
- 0, 0, 0, 0, 0, 0, 0, 0,
449
- 0, 0, 0, 0, 0, 0, 0, 0,
450
- 0, 0, 0, 0, 0, 0, 0, 0,
451
- 0, 0, 0, 0, 0, 0, 0, 0,
452
- 0, 0, 0, 0, 0, 0, 0, 0,
453
- 0, 0, 0, 0, 0, 0, 0, 0,
454
- 0, 0
95
+ 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,
455
96
  ]
456
97
 
457
98
  class << self
458
- attr_accessor :_graphql_lexer_eof_trans
99
+ attr_accessor :_graphql_lexer_eof_trans
459
100
  private :_graphql_lexer_eof_trans, :_graphql_lexer_eof_trans=
460
101
  end
461
102
  self._graphql_lexer_eof_trans = [
462
- 604, 604, 604, 592, 604, 594, 0, 595,
463
- 604, 597, 603, 602, 601, 601, 602, 603,
464
- 604, 685, 685, 685, 685, 685, 685, 685,
465
- 685, 685, 685, 685, 685, 685, 685, 685,
466
- 685, 685, 685, 685, 685, 685, 685, 685,
467
- 685, 685, 685, 685, 685, 685, 685, 685,
468
- 685, 685, 685, 685, 685, 685, 685, 685,
469
- 685, 685, 685, 685, 685, 685, 685, 685,
470
- 685, 685, 685, 685, 685, 685, 685, 685,
471
- 685, 685, 685, 685, 685, 685, 685, 685,
472
- 685, 685, 685, 685, 685, 685, 685, 685,
473
- 685, 685, 685, 685, 685, 685, 685, 685,
474
- 685, 685
103
+ 1, 1, 1, 7, 1, 10, 0, 45, 1, 46, 47, 48, 51, 51, 48, 47, 1, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 0 ,
475
104
  ]
476
105
 
477
106
  class << self
478
- attr_accessor :graphql_lexer_start
107
+ attr_accessor :_graphql_lexer_nfa_targs
108
+ private :_graphql_lexer_nfa_targs, :_graphql_lexer_nfa_targs=
479
109
  end
480
- self.graphql_lexer_start = 6;
110
+ self._graphql_lexer_nfa_targs = [
111
+ 0, 0 ,
112
+ ]
113
+
481
114
  class << self
482
- attr_accessor :graphql_lexer_first_final
115
+ attr_accessor :_graphql_lexer_nfa_offsets
116
+ private :_graphql_lexer_nfa_offsets, :_graphql_lexer_nfa_offsets=
483
117
  end
484
- self.graphql_lexer_first_final = 6;
118
+ self._graphql_lexer_nfa_offsets = [
119
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,
120
+ ]
121
+
485
122
  class << self
486
- attr_accessor :graphql_lexer_error
123
+ attr_accessor :_graphql_lexer_nfa_push_actions
124
+ private :_graphql_lexer_nfa_push_actions, :_graphql_lexer_nfa_push_actions=
487
125
  end
488
- self.graphql_lexer_error = -1;
126
+ self._graphql_lexer_nfa_push_actions = [
127
+ 0, 0 ,
128
+ ]
489
129
 
490
130
  class << self
491
- attr_accessor :graphql_lexer_en_main
131
+ attr_accessor :_graphql_lexer_nfa_pop_trans
132
+ private :_graphql_lexer_nfa_pop_trans, :_graphql_lexer_nfa_pop_trans=
492
133
  end
493
- self.graphql_lexer_en_main = 6;
134
+ self._graphql_lexer_nfa_pop_trans = [
135
+ 0, 0 ,
136
+ ]
494
137
 
138
+ class << self
139
+ attr_accessor :graphql_lexer_start
140
+ end
141
+ self.graphql_lexer_start = 6;
495
142
 
496
- # line 119 "lib/graphql/language/lexer.rl"
143
+ class << self
144
+ attr_accessor :graphql_lexer_first_final
145
+ end
146
+ self.graphql_lexer_first_final = 6;
497
147
 
498
- def self.run_lexer(query_string)
499
- data = query_string.unpack("c*")
500
- eof = data.length
148
+ class << self
149
+ attr_accessor :graphql_lexer_error
150
+ end
151
+ self.graphql_lexer_error = -1;
501
152
 
502
- # Since `Lexer` is a module, store all lexer state
503
- # in this local variable:
504
- meta = {
505
- line: 1,
506
- col: 1,
507
- data: data,
508
- tokens: [],
509
- previous_token: nil,
510
- }
153
+ class << self
154
+ attr_accessor :graphql_lexer_en_main
155
+ end
156
+ self.graphql_lexer_en_main = 6;
511
157
 
512
-
513
- # line 514 "lib/graphql/language/lexer.rb"
514
- begin
158
+ def self.run_lexer(query_string)
159
+ data = query_string.unpack("c*")
160
+ eof = data.length
161
+
162
+ # Since `Lexer` is a module, store all lexer state
163
+ # in this local variable:
164
+ meta = {
165
+ line: 1,
166
+ col: 1,
167
+ data: data,
168
+ tokens: [],
169
+ previous_token: nil,
170
+ }
171
+
515
172
  p ||= 0
516
173
  pe ||= data.length
517
- cs = graphql_lexer_start
518
- ts = nil
519
- te = nil
520
- act = 0
521
- end
522
-
523
- # line 135 "lib/graphql/language/lexer.rl"
524
-
525
- emit_token = ->(name) {
526
- emit(name, ts, te, meta)
527
- }
528
-
529
-
530
- # line 531 "lib/graphql/language/lexer.rb"
531
- begin
532
- _klen, _trans, _keys, _acts, _nacts = nil
533
- _goto_level = 0
534
- _resume = 10
535
- _eof_trans = 15
536
- _again = 20
537
- _test_eof = 30
538
- _out = 40
539
- while true
540
- _trigger_goto = false
541
- if _goto_level <= 0
542
- if p == pe
543
- _goto_level = _test_eof
544
- next
545
- end
546
- end
547
- if _goto_level <= _resume
548
- _acts = _graphql_lexer_from_state_actions[cs]
549
- _nacts = _graphql_lexer_actions[_acts]
550
- _acts += 1
551
- while _nacts > 0
552
- _nacts -= 1
553
- _acts += 1
554
- case _graphql_lexer_actions[_acts - 1]
555
- when 1 then
556
- # line 1 "NONE"
557
- begin
558
- ts = p
559
- end
560
- # line 561 "lib/graphql/language/lexer.rb"
561
- end # from state action switch
562
- end
563
- if _trigger_goto
564
- next
565
- end
566
- _keys = _graphql_lexer_key_offsets[cs]
567
- _trans = _graphql_lexer_index_offsets[cs]
568
- _klen = _graphql_lexer_single_lengths[cs]
569
- _break_match = false
570
174
 
571
175
  begin
572
- if _klen > 0
573
- _lower = _keys
574
- _upper = _keys + _klen - 1
575
-
576
- loop do
577
- break if _upper < _lower
578
- _mid = _lower + ( (_upper - _lower) >> 1 )
579
-
580
- if data[p].ord < _graphql_lexer_trans_keys[_mid]
581
- _upper = _mid - 1
582
- elsif data[p].ord > _graphql_lexer_trans_keys[_mid]
583
- _lower = _mid + 1
584
- else
585
- _trans += (_mid - _keys)
586
- _break_match = true
587
- break
588
- end
589
- end # loop
590
- break if _break_match
591
- _keys += _klen
592
- _trans += _klen
593
- end
594
- _klen = _graphql_lexer_range_lengths[cs]
595
- if _klen > 0
596
- _lower = _keys
597
- _upper = _keys + (_klen << 1) - 2
598
- loop do
599
- break if _upper < _lower
600
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
601
- if data[p].ord < _graphql_lexer_trans_keys[_mid]
602
- _upper = _mid - 2
603
- elsif data[p].ord > _graphql_lexer_trans_keys[_mid+1]
604
- _lower = _mid + 2
605
- else
606
- _trans += ((_mid - _keys) >> 1)
607
- _break_match = true
608
- break
609
- end
610
- end # loop
611
- break if _break_match
612
- _trans += _klen
613
- end
614
- end while false
176
+ cs = graphql_lexer_start;
177
+ ts = 0;
178
+ te = 0;
179
+ act = 0;
180
+
615
181
  end
616
- if _goto_level <= _eof_trans
617
- cs = _graphql_lexer_trans_targs[_trans]
618
- if _graphql_lexer_trans_actions[_trans] != 0
619
- _acts = _graphql_lexer_trans_actions[_trans]
620
- _nacts = _graphql_lexer_actions[_acts]
621
- _acts += 1
622
- while _nacts > 0
623
- _nacts -= 1
624
- _acts += 1
625
- case _graphql_lexer_actions[_acts - 1]
626
- when 2 then
627
- # line 1 "NONE"
628
- begin
629
- te = p+1
630
- end
631
- when 3 then
632
- # line 52 "lib/graphql/language/lexer.rl"
633
- begin
634
- act = 1; end
635
- when 4 then
636
- # line 53 "lib/graphql/language/lexer.rl"
637
- begin
638
- act = 2; end
639
- when 5 then
640
- # line 54 "lib/graphql/language/lexer.rl"
641
- begin
642
- act = 3; end
643
- when 6 then
644
- # line 55 "lib/graphql/language/lexer.rl"
645
- begin
646
- act = 4; end
647
- when 7 then
648
- # line 56 "lib/graphql/language/lexer.rl"
649
- begin
650
- act = 5; end
651
- when 8 then
652
- # line 57 "lib/graphql/language/lexer.rl"
653
- begin
654
- act = 6; end
655
- when 9 then
656
- # line 58 "lib/graphql/language/lexer.rl"
657
- begin
658
- act = 7; end
659
- when 10 then
660
- # line 59 "lib/graphql/language/lexer.rl"
661
- begin
662
- act = 8; end
663
- when 11 then
664
- # line 60 "lib/graphql/language/lexer.rl"
665
- begin
666
- act = 9; end
667
- when 12 then
668
- # line 61 "lib/graphql/language/lexer.rl"
669
- begin
670
- act = 10; end
671
- when 13 then
672
- # line 62 "lib/graphql/language/lexer.rl"
673
- begin
674
- act = 11; end
675
- when 14 then
676
- # line 63 "lib/graphql/language/lexer.rl"
677
- begin
678
- act = 12; end
679
- when 15 then
680
- # line 64 "lib/graphql/language/lexer.rl"
681
- begin
682
- act = 13; end
683
- when 16 then
684
- # line 65 "lib/graphql/language/lexer.rl"
685
- begin
686
- act = 14; end
687
- when 17 then
688
- # line 66 "lib/graphql/language/lexer.rl"
689
- begin
690
- act = 15; end
691
- when 18 then
692
- # line 67 "lib/graphql/language/lexer.rl"
693
- begin
694
- act = 16; end
695
- when 19 then
696
- # line 68 "lib/graphql/language/lexer.rl"
697
- begin
698
- act = 17; end
699
- when 20 then
700
- # line 69 "lib/graphql/language/lexer.rl"
701
- begin
702
- act = 18; end
703
- when 21 then
704
- # line 70 "lib/graphql/language/lexer.rl"
705
- begin
706
- act = 19; end
707
- when 22 then
708
- # line 78 "lib/graphql/language/lexer.rl"
709
- begin
710
- act = 27; end
711
- when 23 then
712
- # line 85 "lib/graphql/language/lexer.rl"
713
- begin
714
- act = 34; end
715
- when 24 then
716
- # line 95 "lib/graphql/language/lexer.rl"
717
- begin
718
- act = 38; end
719
- when 25 then
720
- # line 71 "lib/graphql/language/lexer.rl"
721
- begin
722
- te = p+1
723
- begin emit_token.call(:RCURLY) end
724
- end
725
- when 26 then
726
- # line 72 "lib/graphql/language/lexer.rl"
727
- begin
728
- te = p+1
729
- begin emit_token.call(:LCURLY) end
730
- end
731
- when 27 then
732
- # line 73 "lib/graphql/language/lexer.rl"
733
- begin
734
- te = p+1
735
- begin emit_token.call(:RPAREN) end
736
- end
737
- when 28 then
738
- # line 74 "lib/graphql/language/lexer.rl"
739
- begin
740
- te = p+1
741
- begin emit_token.call(:LPAREN) end
742
- end
743
- when 29 then
744
- # line 75 "lib/graphql/language/lexer.rl"
745
- begin
746
- te = p+1
747
- begin emit_token.call(:RBRACKET) end
748
- end
749
- when 30 then
750
- # line 76 "lib/graphql/language/lexer.rl"
751
- begin
752
- te = p+1
753
- begin emit_token.call(:LBRACKET) end
754
- end
755
- when 31 then
756
- # line 77 "lib/graphql/language/lexer.rl"
757
- begin
758
- te = p+1
759
- begin emit_token.call(:COLON) end
760
- end
761
- when 32 then
762
- # line 78 "lib/graphql/language/lexer.rl"
763
- begin
764
- te = p+1
765
- begin emit_string(ts + 1, te - 1, meta) end
766
- end
767
- when 33 then
768
- # line 79 "lib/graphql/language/lexer.rl"
769
- begin
770
- te = p+1
771
- begin emit_token.call(:VAR_SIGN) end
772
- end
773
- when 34 then
774
- # line 80 "lib/graphql/language/lexer.rl"
775
- begin
776
- te = p+1
777
- begin emit_token.call(:DIR_SIGN) end
778
- end
779
- when 35 then
780
- # line 81 "lib/graphql/language/lexer.rl"
781
- begin
782
- te = p+1
783
- begin emit_token.call(:ELLIPSIS) end
784
- end
785
- when 36 then
786
- # line 82 "lib/graphql/language/lexer.rl"
787
- begin
788
- te = p+1
789
- begin emit_token.call(:EQUALS) end
790
- end
791
- when 37 then
792
- # line 83 "lib/graphql/language/lexer.rl"
793
- begin
794
- te = p+1
795
- begin emit_token.call(:BANG) end
796
- end
797
- when 38 then
798
- # line 84 "lib/graphql/language/lexer.rl"
799
- begin
800
- te = p+1
801
- begin emit_token.call(:PIPE) end
802
- end
803
- when 39 then
804
- # line 88 "lib/graphql/language/lexer.rl"
805
- begin
806
- te = p+1
807
- begin
808
- meta[:line] += 1
809
- meta[:col] = 1
810
- end
811
- end
812
- when 40 then
813
- # line 95 "lib/graphql/language/lexer.rl"
814
- begin
815
- te = p+1
816
- begin emit_token.call(:UNKNOWN_CHAR) end
817
- end
818
- when 41 then
819
- # line 52 "lib/graphql/language/lexer.rl"
820
- begin
821
- te = p
822
- p = p - 1; begin emit_token.call(:INT) end
823
- end
824
- when 42 then
825
- # line 53 "lib/graphql/language/lexer.rl"
826
- begin
827
- te = p
828
- p = p - 1; begin emit_token.call(:FLOAT) end
829
- end
830
- when 43 then
831
- # line 85 "lib/graphql/language/lexer.rl"
832
- begin
833
- te = p
834
- p = p - 1; begin emit_token.call(:IDENTIFIER) end
835
- end
836
- when 44 then
837
- # line 86 "lib/graphql/language/lexer.rl"
838
- begin
839
- te = p
840
- p = p - 1; begin record_comment(ts, te, meta) end
841
- end
842
- when 45 then
843
- # line 93 "lib/graphql/language/lexer.rl"
844
- begin
845
- te = p
846
- p = p - 1; begin meta[:col] += te - ts end
847
- end
848
- when 46 then
849
- # line 95 "lib/graphql/language/lexer.rl"
850
- begin
851
- te = p
852
- p = p - 1; begin emit_token.call(:UNKNOWN_CHAR) end
853
- end
854
- when 47 then
855
- # line 52 "lib/graphql/language/lexer.rl"
856
- begin
857
- begin p = ((te))-1; end
858
- begin emit_token.call(:INT) end
859
- end
860
- when 48 then
861
- # line 95 "lib/graphql/language/lexer.rl"
862
- begin
863
- begin p = ((te))-1; end
864
- begin emit_token.call(:UNKNOWN_CHAR) end
865
- end
866
- when 49 then
867
- # line 1 "NONE"
868
- begin
869
- case act
870
- when 1 then
871
- begin begin p = ((te))-1; end
872
- emit_token.call(:INT) end
873
- when 2 then
874
- begin begin p = ((te))-1; end
875
- emit_token.call(:FLOAT) end
876
- when 3 then
877
- begin begin p = ((te))-1; end
878
- emit_token.call(:ON) end
879
- when 4 then
880
- begin begin p = ((te))-1; end
881
- emit_token.call(:FRAGMENT) end
882
- when 5 then
883
- begin begin p = ((te))-1; end
884
- emit_token.call(:TRUE) end
885
- when 6 then
886
- begin begin p = ((te))-1; end
887
- emit_token.call(:FALSE) end
888
- when 7 then
889
- begin begin p = ((te))-1; end
890
- emit_token.call(:NULL) end
891
- when 8 then
892
- begin begin p = ((te))-1; end
893
- emit_token.call(:QUERY) end
894
- when 9 then
895
- begin begin p = ((te))-1; end
896
- emit_token.call(:MUTATION) end
897
- when 10 then
898
- begin begin p = ((te))-1; end
899
- emit_token.call(:SUBSCRIPTION) end
900
- when 11 then
901
- begin begin p = ((te))-1; end
902
- emit_token.call(:SCHEMA) end
903
- when 12 then
904
- begin begin p = ((te))-1; end
905
- emit_token.call(:SCALAR) end
906
- when 13 then
907
- begin begin p = ((te))-1; end
908
- emit_token.call(:TYPE) end
909
- when 14 then
910
- begin begin p = ((te))-1; end
911
- emit_token.call(:IMPLEMENTS) end
912
- when 15 then
913
- begin begin p = ((te))-1; end
914
- emit_token.call(:INTERFACE) end
915
- when 16 then
916
- begin begin p = ((te))-1; end
917
- emit_token.call(:UNION) end
918
- when 17 then
919
- begin begin p = ((te))-1; end
920
- emit_token.call(:ENUM) end
921
- when 18 then
922
- begin begin p = ((te))-1; end
923
- emit_token.call(:INPUT) end
924
- when 19 then
925
- begin begin p = ((te))-1; end
926
- emit_token.call(:DIRECTIVE) end
927
- when 27 then
928
- begin begin p = ((te))-1; end
929
- emit_string(ts + 1, te - 1, meta) end
930
- when 34 then
931
- begin begin p = ((te))-1; end
932
- emit_token.call(:IDENTIFIER) end
933
- when 38 then
934
- begin begin p = ((te))-1; end
935
- emit_token.call(:UNKNOWN_CHAR) end
936
- end
182
+ begin
183
+ _trans = 0;
184
+ _have = 0;
185
+ _cont = 1;
186
+ _keys = 0;
187
+ _inds = 0;
188
+ while ( _cont == 1 )
189
+ begin
190
+ _have = 0;
191
+ if ( p == pe )
192
+ begin
193
+ if ( p == eof )
194
+ begin
195
+ if ( _graphql_lexer_eof_trans[cs] > 0 )
196
+ begin
197
+ _trans = _graphql_lexer_eof_trans[cs] - 1;
198
+ _have = 1;
199
+
200
+ end
201
+
202
+ end
203
+ if ( _have == 0 )
204
+ begin
205
+
206
+ end
207
+
208
+ end
209
+
210
+ end
211
+
212
+ end
213
+ if ( _have == 0 )
214
+ _cont = 0;
215
+
216
+ end
217
+
218
+ end
219
+
220
+ end
221
+ if ( _cont == 1 )
222
+ begin
223
+ if ( _have == 0 )
224
+ begin
225
+ case _graphql_lexer_from_state_actions[cs]
226
+ when -2 then
227
+ begin
228
+ end
229
+ when 9 then
230
+ begin
231
+ begin
232
+ begin
233
+ ts = p;
234
+
235
+ end
236
+
237
+ end
238
+
239
+
240
+ end
241
+ end
242
+ _keys = (cs<<1) ;
243
+ _inds = _graphql_lexer_index_offsets[cs] ;
244
+ if ( ( data[p ].ord) <= 125 && ( data[p ].ord) >= 9 )
245
+ begin
246
+ _ic = _graphql_lexer_char_class[( data[p ].ord) - 9];
247
+ if ( _ic <= _graphql_lexer_trans_keys[_keys+1 ]&& _ic >= _graphql_lexer_trans_keys[_keys ] )
248
+ _trans = _graphql_lexer_indicies[_inds + ( _ic - _graphql_lexer_trans_keys[_keys ]) ];
249
+
250
+ else
251
+ _trans = _graphql_lexer_index_defaults[cs];
252
+
253
+ end
254
+
255
+ end
256
+
257
+ else
258
+ begin
259
+ _trans = _graphql_lexer_index_defaults[cs];
260
+
261
+ end
262
+
263
+ end
264
+
265
+ end
266
+
267
+ end
268
+ if ( _cont == 1 )
269
+ begin
270
+ cs = _graphql_lexer_cond_targs[_trans];
271
+ case _graphql_lexer_cond_actions[_trans]
272
+ when -2 then
273
+ begin
274
+ end
275
+ when 17 then
276
+ begin
277
+ begin
278
+ begin
279
+ te = p+1;
280
+
281
+ end
282
+
283
+ end
284
+
285
+ end
286
+ when 27 then
287
+ begin
288
+ begin
289
+ begin
290
+ te = p+1;
291
+ begin
292
+ emit(:RCURLY, ts, te, meta)
293
+ end
294
+
295
+ end
296
+
297
+ end
298
+
299
+ end
300
+ when 25 then
301
+ begin
302
+ begin
303
+ begin
304
+ te = p+1;
305
+ begin
306
+ emit(:LCURLY, ts, te, meta)
307
+ end
308
+
309
+ end
310
+
311
+ end
312
+
313
+ end
314
+ when 16 then
315
+ begin
316
+ begin
317
+ begin
318
+ te = p+1;
319
+ begin
320
+ emit(:RPAREN, ts, te, meta)
321
+ end
322
+
323
+ end
324
+
325
+ end
326
+
327
+ end
328
+ when 15 then
329
+ begin
330
+ begin
331
+ begin
332
+ te = p+1;
333
+ begin
334
+ emit(:LPAREN, ts, te, meta)
335
+ end
336
+
337
+ end
338
+
339
+ end
340
+
341
+ end
342
+ when 24 then
343
+ begin
344
+ begin
345
+ begin
346
+ te = p+1;
347
+ begin
348
+ emit(:RBRACKET, ts, te, meta)
349
+ end
350
+
351
+ end
352
+
353
+ end
354
+
355
+ end
356
+ when 23 then
357
+ begin
358
+ begin
359
+ begin
360
+ te = p+1;
361
+ begin
362
+ emit(:LBRACKET, ts, te, meta)
363
+ end
364
+
365
+ end
366
+
367
+ end
368
+
369
+ end
370
+ when 19 then
371
+ begin
372
+ begin
373
+ begin
374
+ te = p+1;
375
+ begin
376
+ emit(:COLON, ts, te, meta)
377
+ end
378
+
379
+ end
380
+
381
+ end
382
+
383
+ end
384
+ when 2 then
385
+ begin
386
+ begin
387
+ begin
388
+ te = p+1;
389
+ begin
390
+ emit_string(ts + 1, te - 1, meta)
391
+ end
392
+
393
+ end
394
+
395
+ end
396
+
397
+ end
398
+ when 14 then
399
+ begin
400
+ begin
401
+ begin
402
+ te = p+1;
403
+ begin
404
+ emit(:VAR_SIGN, ts, te, meta)
405
+ end
406
+
407
+ end
408
+
409
+ end
410
+
411
+ end
412
+ when 21 then
413
+ begin
414
+ begin
415
+ begin
416
+ te = p+1;
417
+ begin
418
+ emit(:DIR_SIGN, ts, te, meta)
419
+ end
420
+
421
+ end
422
+
423
+ end
424
+
425
+ end
426
+ when 7 then
427
+ begin
428
+ begin
429
+ begin
430
+ te = p+1;
431
+ begin
432
+ emit(:ELLIPSIS, ts, te, meta)
433
+ end
434
+
435
+ end
436
+
437
+ end
438
+
439
+ end
440
+ when 20 then
441
+ begin
442
+ begin
443
+ begin
444
+ te = p+1;
445
+ begin
446
+ emit(:EQUALS, ts, te, meta)
447
+ end
448
+
449
+ end
450
+
451
+ end
452
+
453
+ end
454
+ when 12 then
455
+ begin
456
+ begin
457
+ begin
458
+ te = p+1;
459
+ begin
460
+ emit(:BANG, ts, te, meta)
461
+ end
462
+
463
+ end
464
+
465
+ end
466
+
467
+ end
468
+ when 26 then
469
+ begin
470
+ begin
471
+ begin
472
+ te = p+1;
473
+ begin
474
+ emit(:PIPE, ts, te, meta)
475
+ end
476
+
477
+ end
478
+
479
+ end
480
+
481
+ end
482
+ when 11 then
483
+ begin
484
+ begin
485
+ begin
486
+ te = p+1;
487
+ begin
488
+ meta[:line] += 1
489
+ meta[:col] = 1
490
+
491
+ end
492
+
493
+ end
494
+
495
+ end
496
+
497
+ end
498
+ when 10 then
499
+ begin
500
+ begin
501
+ begin
502
+ te = p+1;
503
+ begin
504
+ emit(:UNKNOWN_CHAR, ts, te, meta)
505
+ end
506
+
507
+ end
508
+
509
+ end
510
+
511
+ end
512
+ when 31 then
513
+ begin
514
+ begin
515
+ begin
516
+ te = p;
517
+ p = p - 1;
518
+ begin
519
+ emit(:INT, ts, te, meta)
520
+ end
521
+
522
+ end
523
+
524
+ end
525
+
526
+ end
527
+ when 32 then
528
+ begin
529
+ begin
530
+ begin
531
+ te = p;
532
+ p = p - 1;
533
+ begin
534
+ emit(:FLOAT, ts, te, meta)
535
+ end
536
+
537
+ end
538
+
539
+ end
540
+
541
+ end
542
+ when 33 then
543
+ begin
544
+ begin
545
+ begin
546
+ te = p;
547
+ p = p - 1;
548
+ begin
549
+ emit(:IDENTIFIER, ts, te, meta)
550
+ end
551
+
552
+ end
553
+
554
+ end
555
+
556
+ end
557
+ when 29 then
558
+ begin
559
+ begin
560
+ begin
561
+ te = p;
562
+ p = p - 1;
563
+ begin
564
+ record_comment(ts, te, meta)
565
+ end
566
+
567
+ end
568
+
569
+ end
570
+
571
+ end
572
+ when 28 then
573
+ begin
574
+ begin
575
+ begin
576
+ te = p;
577
+ p = p - 1;
578
+ begin
579
+ meta[:col] += te - ts
580
+ end
581
+
582
+ end
583
+
584
+ end
585
+
586
+ end
587
+ when 30 then
588
+ begin
589
+ begin
590
+ begin
591
+ te = p;
592
+ p = p - 1;
593
+ begin
594
+ emit(:UNKNOWN_CHAR, ts, te, meta)
595
+ end
596
+
597
+ end
598
+
599
+ end
600
+
601
+ end
602
+ when 4 then
603
+ begin
604
+ begin
605
+ begin
606
+ p = ((te))-1;
607
+ begin
608
+ emit(:INT, ts, te, meta)
609
+ end
610
+
611
+ end
612
+
613
+ end
614
+
615
+ end
616
+ when 6 then
617
+ begin
618
+ begin
619
+ begin
620
+ p = ((te))-1;
621
+ begin
622
+ emit(:UNKNOWN_CHAR, ts, te, meta)
623
+ end
624
+
625
+ end
626
+
627
+ end
628
+
629
+ end
630
+ when 1 then
631
+ begin
632
+ begin
633
+ begin
634
+ case act
635
+ when -2 then
636
+ begin
637
+ end
638
+ when 1 then
639
+ begin
640
+ p = ((te))-1;
641
+ begin
642
+ emit(:INT, ts, te, meta)
643
+ end
644
+
645
+ end
646
+ when 2 then
647
+ begin
648
+ p = ((te))-1;
649
+ begin
650
+ emit(:FLOAT, ts, te, meta)
651
+ end
652
+
653
+ end
654
+ when 3 then
655
+ begin
656
+ p = ((te))-1;
657
+ begin
658
+ emit(:ON, ts, te, meta)
659
+ end
660
+
661
+ end
662
+ when 4 then
663
+ begin
664
+ p = ((te))-1;
665
+ begin
666
+ emit(:FRAGMENT, ts, te, meta)
667
+ end
668
+
669
+ end
670
+ when 5 then
671
+ begin
672
+ p = ((te))-1;
673
+ begin
674
+ emit(:TRUE, ts, te, meta)
675
+ end
676
+
677
+ end
678
+ when 6 then
679
+ begin
680
+ p = ((te))-1;
681
+ begin
682
+ emit(:FALSE, ts, te, meta)
683
+ end
684
+
685
+ end
686
+ when 7 then
687
+ begin
688
+ p = ((te))-1;
689
+ begin
690
+ emit(:NULL, ts, te, meta)
691
+ end
692
+
693
+ end
694
+ when 8 then
695
+ begin
696
+ p = ((te))-1;
697
+ begin
698
+ emit(:QUERY, ts, te, meta)
699
+ end
700
+
701
+ end
702
+ when 9 then
703
+ begin
704
+ p = ((te))-1;
705
+ begin
706
+ emit(:MUTATION, ts, te, meta)
707
+ end
708
+
709
+ end
710
+ when 10 then
711
+ begin
712
+ p = ((te))-1;
713
+ begin
714
+ emit(:SUBSCRIPTION, ts, te, meta)
715
+ end
716
+
717
+ end
718
+ when 11 then
719
+ begin
720
+ p = ((te))-1;
721
+ begin
722
+ emit(:SCHEMA, ts, te, meta)
723
+ end
724
+
725
+ end
726
+ when 12 then
727
+ begin
728
+ p = ((te))-1;
729
+ begin
730
+ emit(:SCALAR, ts, te, meta)
731
+ end
732
+
733
+ end
734
+ when 13 then
735
+ begin
736
+ p = ((te))-1;
737
+ begin
738
+ emit(:TYPE, ts, te, meta)
739
+ end
740
+
741
+ end
742
+ when 14 then
743
+ begin
744
+ p = ((te))-1;
745
+ begin
746
+ emit(:IMPLEMENTS, ts, te, meta)
747
+ end
748
+
749
+ end
750
+ when 15 then
751
+ begin
752
+ p = ((te))-1;
753
+ begin
754
+ emit(:INTERFACE, ts, te, meta)
755
+ end
756
+
757
+ end
758
+ when 16 then
759
+ begin
760
+ p = ((te))-1;
761
+ begin
762
+ emit(:UNION, ts, te, meta)
763
+ end
764
+
765
+ end
766
+ when 17 then
767
+ begin
768
+ p = ((te))-1;
769
+ begin
770
+ emit(:ENUM, ts, te, meta)
771
+ end
772
+
773
+ end
774
+ when 18 then
775
+ begin
776
+ p = ((te))-1;
777
+ begin
778
+ emit(:INPUT, ts, te, meta)
779
+ end
780
+
781
+ end
782
+ when 19 then
783
+ begin
784
+ p = ((te))-1;
785
+ begin
786
+ emit(:DIRECTIVE, ts, te, meta)
787
+ end
788
+
789
+ end
790
+ when 27 then
791
+ begin
792
+ p = ((te))-1;
793
+ begin
794
+ emit_string(ts + 1, te - 1, meta)
795
+ end
796
+
797
+ end
798
+ when 34 then
799
+ begin
800
+ p = ((te))-1;
801
+ begin
802
+ emit(:IDENTIFIER, ts, te, meta)
803
+ end
804
+
805
+ end
806
+ when 38 then
807
+ begin
808
+ p = ((te))-1;
809
+ begin
810
+ emit(:UNKNOWN_CHAR, ts, te, meta)
811
+ end
812
+
813
+
814
+ end
815
+ end
816
+
817
+ end
818
+
819
+
820
+ end
821
+
822
+ end
823
+ when 18 then
824
+ begin
825
+ begin
826
+ begin
827
+ te = p+1;
828
+
829
+ end
830
+
831
+ end
832
+ begin
833
+ begin
834
+ act = 1;
835
+
836
+ end
837
+
838
+ end
839
+
840
+ end
841
+ when 5 then
842
+ begin
843
+ begin
844
+ begin
845
+ te = p+1;
846
+
847
+ end
848
+
849
+ end
850
+ begin
851
+ begin
852
+ act = 2;
853
+
854
+ end
855
+
856
+ end
857
+
858
+ end
859
+ when 43 then
860
+ begin
861
+ begin
862
+ begin
863
+ te = p+1;
864
+
865
+ end
866
+
867
+ end
868
+ begin
869
+ begin
870
+ act = 3;
871
+
872
+ end
873
+
874
+ end
875
+
876
+ end
877
+ when 37 then
878
+ begin
879
+ begin
880
+ begin
881
+ te = p+1;
882
+
883
+ end
884
+
885
+ end
886
+ begin
887
+ begin
888
+ act = 4;
889
+
890
+ end
891
+
892
+ end
893
+
894
+ end
895
+ when 48 then
896
+ begin
897
+ begin
898
+ begin
899
+ te = p+1;
900
+
901
+ end
902
+
903
+ end
904
+ begin
905
+ begin
906
+ act = 5;
907
+
908
+ end
909
+
910
+ end
911
+
912
+ end
913
+ when 36 then
914
+ begin
915
+ begin
916
+ begin
917
+ te = p+1;
918
+
919
+ end
920
+
921
+ end
922
+ begin
923
+ begin
924
+ act = 6;
925
+
926
+ end
927
+
928
+ end
929
+
930
+ end
931
+ when 42 then
932
+ begin
933
+ begin
934
+ begin
935
+ te = p+1;
936
+
937
+ end
938
+
939
+ end
940
+ begin
941
+ begin
942
+ act = 7;
943
+
944
+ end
945
+
946
+ end
947
+
948
+ end
949
+ when 44 then
950
+ begin
951
+ begin
952
+ begin
953
+ te = p+1;
954
+
955
+ end
956
+
957
+ end
958
+ begin
959
+ begin
960
+ act = 8;
961
+
962
+ end
963
+
964
+ end
965
+
966
+ end
967
+ when 41 then
968
+ begin
969
+ begin
970
+ begin
971
+ te = p+1;
972
+
973
+ end
974
+
975
+ end
976
+ begin
977
+ begin
978
+ act = 9;
979
+
980
+ end
981
+
982
+ end
983
+
984
+ end
985
+ when 47 then
986
+ begin
987
+ begin
988
+ begin
989
+ te = p+1;
990
+
991
+ end
992
+
993
+ end
994
+ begin
995
+ begin
996
+ act = 10;
997
+
998
+ end
999
+
1000
+ end
1001
+
1002
+ end
1003
+ when 46 then
1004
+ begin
1005
+ begin
1006
+ begin
1007
+ te = p+1;
1008
+
1009
+ end
1010
+
1011
+ end
1012
+ begin
1013
+ begin
1014
+ act = 11;
1015
+
1016
+ end
1017
+
1018
+ end
1019
+
1020
+ end
1021
+ when 45 then
1022
+ begin
1023
+ begin
1024
+ begin
1025
+ te = p+1;
1026
+
1027
+ end
1028
+
1029
+ end
1030
+ begin
1031
+ begin
1032
+ act = 12;
1033
+
1034
+ end
1035
+
1036
+ end
1037
+
1038
+ end
1039
+ when 49 then
1040
+ begin
1041
+ begin
1042
+ begin
1043
+ te = p+1;
1044
+
1045
+ end
1046
+
1047
+ end
1048
+ begin
1049
+ begin
1050
+ act = 13;
1051
+
1052
+ end
1053
+
1054
+ end
1055
+
1056
+ end
1057
+ when 38 then
1058
+ begin
1059
+ begin
1060
+ begin
1061
+ te = p+1;
1062
+
1063
+ end
1064
+
1065
+ end
1066
+ begin
1067
+ begin
1068
+ act = 14;
1069
+
1070
+ end
1071
+
1072
+ end
1073
+
1074
+ end
1075
+ when 40 then
1076
+ begin
1077
+ begin
1078
+ begin
1079
+ te = p+1;
1080
+
1081
+ end
1082
+
1083
+ end
1084
+ begin
1085
+ begin
1086
+ act = 15;
1087
+
1088
+ end
1089
+
1090
+ end
1091
+
1092
+ end
1093
+ when 50 then
1094
+ begin
1095
+ begin
1096
+ begin
1097
+ te = p+1;
1098
+
1099
+ end
1100
+
1101
+ end
1102
+ begin
1103
+ begin
1104
+ act = 16;
1105
+
1106
+ end
1107
+
1108
+ end
1109
+
1110
+ end
1111
+ when 35 then
1112
+ begin
1113
+ begin
1114
+ begin
1115
+ te = p+1;
1116
+
1117
+ end
1118
+
1119
+ end
1120
+ begin
1121
+ begin
1122
+ act = 17;
1123
+
1124
+ end
1125
+
1126
+ end
1127
+
1128
+ end
1129
+ when 39 then
1130
+ begin
1131
+ begin
1132
+ begin
1133
+ te = p+1;
1134
+
1135
+ end
1136
+
1137
+ end
1138
+ begin
1139
+ begin
1140
+ act = 18;
1141
+
1142
+ end
1143
+
1144
+ end
1145
+
1146
+ end
1147
+ when 34 then
1148
+ begin
1149
+ begin
1150
+ begin
1151
+ te = p+1;
1152
+
1153
+ end
1154
+
1155
+ end
1156
+ begin
1157
+ begin
1158
+ act = 19;
1159
+
1160
+ end
1161
+
1162
+ end
1163
+
1164
+ end
1165
+ when 3 then
1166
+ begin
1167
+ begin
1168
+ begin
1169
+ te = p+1;
1170
+
1171
+ end
1172
+
1173
+ end
1174
+ begin
1175
+ begin
1176
+ act = 27;
1177
+
1178
+ end
1179
+
1180
+ end
1181
+
1182
+ end
1183
+ when 22 then
1184
+ begin
1185
+ begin
1186
+ begin
1187
+ te = p+1;
1188
+
1189
+ end
1190
+
1191
+ end
1192
+ begin
1193
+ begin
1194
+ act = 34;
1195
+
1196
+ end
1197
+
1198
+ end
1199
+
1200
+ end
1201
+ when 13 then
1202
+ begin
1203
+ begin
1204
+ begin
1205
+ te = p+1;
1206
+
1207
+ end
1208
+
1209
+ end
1210
+ begin
1211
+ begin
1212
+ act = 38;
1213
+
1214
+ end
1215
+
1216
+ end
1217
+
1218
+
1219
+ end
1220
+ end
1221
+ case _graphql_lexer_to_state_actions[cs]
1222
+ when -2 then
1223
+ begin
1224
+ end
1225
+ when 8 then
1226
+ begin
1227
+ begin
1228
+ begin
1229
+ ts = 0;
1230
+
1231
+ end
1232
+
1233
+ end
1234
+
1235
+
1236
+ end
1237
+ end
1238
+ if ( _cont == 1 )
1239
+ p += 1;
1240
+
1241
+ end
1242
+
937
1243
  end
938
- # line 939 "lib/graphql/language/lexer.rb"
939
- end # action switch
1244
+
940
1245
  end
1246
+
941
1247
  end
942
- if _trigger_goto
943
- next
944
- end
945
- end
946
- if _goto_level <= _again
947
- _acts = _graphql_lexer_to_state_actions[cs]
948
- _nacts = _graphql_lexer_actions[_acts]
949
- _acts += 1
950
- while _nacts > 0
951
- _nacts -= 1
952
- _acts += 1
953
- case _graphql_lexer_actions[_acts - 1]
954
- when 0 then
955
- # line 1 "NONE"
956
- begin
957
- ts = nil; end
958
- # line 959 "lib/graphql/language/lexer.rb"
959
- end # to state action switch
960
- end
961
- if _trigger_goto
962
- next
963
- end
964
- p += 1
965
- if p != pe
966
- _goto_level = _resume
967
- next
968
- end
969
- end
970
- if _goto_level <= _test_eof
971
- if p == eof
972
- if _graphql_lexer_eof_trans[cs] > 0
973
- _trans = _graphql_lexer_eof_trans[cs] - 1;
974
- _goto_level = _eof_trans
975
- next;
976
- end
1248
+
977
1249
  end
978
- end
979
- if _goto_level <= _out
980
- break
981
- end
982
- end
983
- end
984
1250
 
985
- # line 141 "lib/graphql/language/lexer.rl"
1251
+ end
986
1252
 
987
- meta[:tokens]
988
- end
1253
+ end
989
1254
 
990
- def self.record_comment(ts, te, meta)
991
- token = GraphQL::Language::Token.new(
992
- name: :COMMENT,
993
- value: meta[:data][ts...te].pack(PACK_DIRECTIVE).force_encoding(UTF_8_ENCODING),
994
- line: meta[:line],
995
- col: meta[:col],
996
- prev_token: meta[:previous_token],
997
- )
1255
+ end
1256
+ meta[:tokens]
1257
+ end
998
1258
 
999
- meta[:previous_token] = token
1259
+ def self.record_comment(ts, te, meta)
1260
+ token = GraphQL::Language::Token.new(
1261
+ name: :COMMENT,
1262
+ value: meta[:data][ts...te].pack(PACK_DIRECTIVE).force_encoding(UTF_8_ENCODING),
1263
+ line: meta[:line],
1264
+ col: meta[:col],
1265
+ prev_token: meta[:previous_token],
1266
+ )
1000
1267
 
1001
- meta[:col] += te - ts
1002
- end
1268
+ meta[:previous_token] = token
1003
1269
 
1004
- def self.emit(token_name, ts, te, meta)
1005
- meta[:tokens] << token = GraphQL::Language::Token.new(
1006
- name: token_name,
1007
- value: meta[:data][ts...te].pack(PACK_DIRECTIVE).force_encoding(UTF_8_ENCODING),
1008
- line: meta[:line],
1009
- col: meta[:col],
1010
- prev_token: meta[:previous_token],
1011
- )
1012
- meta[:previous_token] = token
1013
- # Bump the column counter for the next token
1014
- meta[:col] += te - ts
1015
- end
1270
+ meta[:col] += te - ts
1271
+ end
1016
1272
 
1017
- ESCAPES = /\\["\\\/bfnrt]/
1018
- ESCAPES_REPLACE = {
1019
- '\\"' => '"',
1020
- "\\\\" => "\\",
1021
- "\\/" => '/',
1022
- "\\b" => "\b",
1023
- "\\f" => "\f",
1024
- "\\n" => "\n",
1025
- "\\r" => "\r",
1026
- "\\t" => "\t",
1027
- }
1273
+ def self.emit(token_name, ts, te, meta)
1274
+ meta[:tokens] << token = GraphQL::Language::Token.new(
1275
+ name: token_name,
1276
+ value: meta[:data][ts...te].pack(PACK_DIRECTIVE).force_encoding(UTF_8_ENCODING),
1277
+ line: meta[:line],
1278
+ col: meta[:col],
1279
+ prev_token: meta[:previous_token],
1280
+ )
1281
+ meta[:previous_token] = token
1282
+ # Bump the column counter for the next token
1283
+ meta[:col] += te - ts
1284
+ end
1028
1285
 
1029
- UTF_8 = /\\u[\dAa-f]{4}/i
1030
- UTF_8_REPLACE = ->(m) { [m[-4..-1].to_i(16)].pack('U'.freeze) }
1286
+ ESCAPES = /\\["\\\/bfnrt]/
1287
+ ESCAPES_REPLACE = {
1288
+ '\\"' => '"',
1289
+ "\\\\" => "\\",
1290
+ "\\/" => '/',
1291
+ "\\b" => "\b",
1292
+ "\\f" => "\f",
1293
+ "\\n" => "\n",
1294
+ "\\r" => "\r",
1295
+ "\\t" => "\t",
1296
+ }
1031
1297
 
1032
- VALID_STRING = /\A(?:[^\\]|#{ESCAPES}|#{UTF_8})*\z/o
1298
+ UTF_8 = /\\u[\dAa-f]{4}/i
1299
+ UTF_8_REPLACE = ->(m) { [m[-4..-1].to_i(16)].pack('U'.freeze) }
1033
1300
 
1034
- PACK_DIRECTIVE = "c*"
1035
- UTF_8_ENCODING = "UTF-8"
1301
+ VALID_STRING = /\A(?:[^\\]|#{ESCAPES}|#{UTF_8})*\z/o
1036
1302
 
1037
- def self.emit_string(ts, te, meta)
1038
- value = meta[:data][ts...te].pack(PACK_DIRECTIVE).force_encoding(UTF_8_ENCODING)
1039
- if value !~ VALID_STRING
1040
- meta[:tokens] << token = GraphQL::Language::Token.new(
1041
- name: :BAD_UNICODE_ESCAPE,
1042
- value: value,
1043
- line: meta[:line],
1044
- col: meta[:col],
1045
- prev_token: meta[:previous_token],
1046
- )
1047
- else
1048
- replace_escaped_characters_in_place(value)
1303
+ PACK_DIRECTIVE = "c*"
1304
+ UTF_8_ENCODING = "UTF-8"
1049
1305
 
1050
- meta[:tokens] << token = GraphQL::Language::Token.new(
1051
- name: :STRING,
1052
- value: value,
1053
- line: meta[:line],
1054
- col: meta[:col],
1055
- prev_token: meta[:previous_token],
1056
- )
1057
- end
1306
+ def self.emit_string(ts, te, meta)
1307
+ value = meta[:data][ts...te].pack(PACK_DIRECTIVE).force_encoding(UTF_8_ENCODING)
1308
+ if value !~ VALID_STRING
1309
+ meta[:tokens] << token = GraphQL::Language::Token.new(
1310
+ name: :BAD_UNICODE_ESCAPE,
1311
+ value: value,
1312
+ line: meta[:line],
1313
+ col: meta[:col],
1314
+ prev_token: meta[:previous_token],
1315
+ )
1316
+ else
1317
+ replace_escaped_characters_in_place(value)
1058
1318
 
1059
- meta[:previous_token] = token
1060
- meta[:col] += te - ts
1061
- end
1062
- end
1063
- end
1319
+ meta[:tokens] << token = GraphQL::Language::Token.new(
1320
+ name: :STRING,
1321
+ value: value,
1322
+ line: meta[:line],
1323
+ col: meta[:col],
1324
+ prev_token: meta[:previous_token],
1325
+ )
1326
+ end
1327
+
1328
+ meta[:previous_token] = token
1329
+ meta[:col] += te - ts
1330
+ end
1331
+ end
1332
+ end
1064
1333
  end