graphql-c_parser 1.1.2 → 1.1.3
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/ext/graphql_c_parser_ext/parser.c +481 -453
- data/lib/graphql/c_parser/version.rb +1 -1
- metadata +3 -7
@@ -389,7 +389,8 @@ enum yysymbol_kind_t
|
|
389
389
|
YYSYMBOL_interface_type_extension = 124, /* interface_type_extension */
|
390
390
|
YYSYMBOL_union_type_extension = 125, /* union_type_extension */
|
391
391
|
YYSYMBOL_enum_type_extension = 126, /* enum_type_extension */
|
392
|
-
YYSYMBOL_input_object_type_extension = 127 /* input_object_type_extension */
|
392
|
+
YYSYMBOL_input_object_type_extension = 127, /* input_object_type_extension */
|
393
|
+
YYSYMBOL_NamedTypeForCondition = 128 /* NamedTypeForCondition */
|
393
394
|
};
|
394
395
|
typedef enum yysymbol_kind_t yysymbol_kind_t;
|
395
396
|
|
@@ -717,16 +718,16 @@ union yyalloc
|
|
717
718
|
/* YYFINAL -- State number of the termination state. */
|
718
719
|
#define YYFINAL 79
|
719
720
|
/* YYLAST -- Last index in YYTABLE. */
|
720
|
-
#define YYLAST
|
721
|
+
#define YYLAST 820
|
721
722
|
|
722
723
|
/* YYNTOKENS -- Number of terminals. */
|
723
724
|
#define YYNTOKENS 40
|
724
725
|
/* YYNNTS -- Number of nonterminals. */
|
725
|
-
#define YYNNTS
|
726
|
+
#define YYNNTS 89
|
726
727
|
/* YYNRULES -- Number of rules. */
|
727
|
-
#define YYNRULES
|
728
|
+
#define YYNRULES 185
|
728
729
|
/* YYNSTATES -- Number of states. */
|
729
|
-
#define YYNSTATES
|
730
|
+
#define YYNSTATES 314
|
730
731
|
|
731
732
|
/* YYMAXUTOK -- Last valid token kind. */
|
732
733
|
#define YYMAXUTOK 257
|
@@ -775,25 +776,25 @@ static const yytype_int8 yytranslate[] =
|
|
775
776
|
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
|
776
777
|
static const yytype_int16 yyrline[] =
|
777
778
|
{
|
778
|
-
0,
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
779
|
+
0, 105, 105, 107, 121, 122, 125, 126, 127, 130,
|
780
|
+
131, 134, 145, 156, 169, 170, 171, 174, 175, 178,
|
781
|
+
179, 182, 183, 186, 198, 199, 202, 203, 206, 207,
|
782
|
+
208, 211, 214, 215, 218, 229, 242, 243, 246, 247,
|
783
|
+
250, 260, 261, 262, 263, 264, 265, 266, 267, 268,
|
784
|
+
271, 272, 273, 275, 283, 292, 293, 296, 297, 300,
|
785
|
+
301, 302, 303, 305, 314, 323, 324, 327, 328, 331,
|
786
|
+
342, 351, 352, 355, 356, 359, 370, 371, 374, 375,
|
787
|
+
377, 387, 388, 391, 392, 393, 394, 395, 396, 397,
|
788
|
+
398, 399, 400, 401, 402, 405, 406, 407, 408, 409,
|
789
|
+
410, 414, 424, 433, 444, 456, 457, 460, 461, 464,
|
790
|
+
471, 480, 481, 482, 485, 498, 499, 502, 506, 511,
|
791
|
+
516, 517, 518, 519, 520, 521, 523, 526, 527, 530,
|
792
|
+
542, 556, 557, 558, 559, 562, 570, 576, 584, 589,
|
793
|
+
603, 604, 607, 608, 611, 625, 626, 629, 630, 631,
|
794
|
+
634, 648, 649, 652, 660, 665, 678, 691, 703, 704,
|
795
|
+
707, 720, 734, 735, 738, 739, 743, 744, 747, 758,
|
796
|
+
770, 771, 772, 773, 774, 775, 777, 787, 799, 811,
|
797
|
+
820, 831, 840, 851, 860, 871
|
797
798
|
};
|
798
799
|
#endif
|
799
800
|
|
@@ -845,13 +846,14 @@ yysymbol_name (yysymbol_kind_t yysymbol)
|
|
845
846
|
"directive_locations", "type_system_extension", "schema_extension",
|
846
847
|
"type_extension", "scalar_type_extension", "object_type_extension",
|
847
848
|
"interface_type_extension", "union_type_extension",
|
848
|
-
"enum_type_extension", "input_object_type_extension",
|
849
|
+
"enum_type_extension", "input_object_type_extension",
|
850
|
+
"NamedTypeForCondition", YY_NULLPTR
|
849
851
|
};
|
850
852
|
return yy_sname[yysymbol];
|
851
853
|
}
|
852
854
|
#endif
|
853
855
|
|
854
|
-
#define YYPACT_NINF (-
|
856
|
+
#define YYPACT_NINF (-249)
|
855
857
|
|
856
858
|
#define yypact_value_is_default(Yyn) \
|
857
859
|
((Yyn) == YYPACT_NINF)
|
@@ -865,38 +867,38 @@ yysymbol_name (yysymbol_kind_t yysymbol)
|
|
865
867
|
STATE-NUM. */
|
866
868
|
static const yytype_int16 yypact[] =
|
867
869
|
{
|
868
|
-
|
869
|
-
-
|
870
|
-
-
|
871
|
-
-
|
872
|
-
|
873
|
-
-
|
874
|
-
-
|
875
|
-
-
|
876
|
-
-
|
877
|
-
|
878
|
-
|
879
|
-
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
-
|
897
|
-
|
898
|
-
-
|
899
|
-
-
|
870
|
+
148, 179, 749, 485, -249, -249, 14, -249, -249, 45,
|
871
|
+
-249, 83, -249, -249, -249, 716, -249, -249, -249, -249,
|
872
|
+
-249, 120, -249, -249, -249, -249, -249, -249, -249, -249,
|
873
|
+
-249, -249, -249, -249, -249, -249, -249, -249, 716, 716,
|
874
|
+
716, 716, 14, 716, 716, -249, -249, -249, -249, -249,
|
875
|
+
-249, -249, -249, -249, -249, -249, -249, -249, -249, -249,
|
876
|
+
-249, -249, -249, -249, 21, 584, -249, -249, 518, -249,
|
877
|
+
-249, 11, -249, -249, -249, 716, 47, 14, -249, -249,
|
878
|
+
-249, 58, -249, 74, 716, 716, 716, 716, 716, 716,
|
879
|
+
14, 14, 65, 14, 75, 27, 65, 14, 716, 716,
|
880
|
+
84, 14, -249, -249, 716, 716, 14, 93, 174, -249,
|
881
|
+
-249, 95, 14, 716, 14, 14, 65, 14, 65, 14,
|
882
|
+
111, 27, 122, 27, 317, 14, 14, 174, 14, 140,
|
883
|
+
102, -249, 14, 14, 617, -249, -249, 93, 650, -249,
|
884
|
+
149, 84, -249, 155, 72, -249, 716, 48, -249, 84,
|
885
|
+
144, 146, 151, 14, -249, 14, 160, 143, 143, 716,
|
886
|
+
208, 171, 716, 158, 118, 158, 162, 84, 84, 551,
|
887
|
+
14, -249, -249, 418, -249, -249, 716, -249, -249, 181,
|
888
|
+
-249, -249, -249, 143, 154, 143, 143, 158, 158, 162,
|
889
|
+
782, -249, -11, 716, -249, -10, -249, 171, 716, -249,
|
890
|
+
15, -249, -249, -249, -249, 716, 165, -249, -249, -249,
|
891
|
+
84, -249, -249, -249, -249, 350, 716, -249, -249, -249,
|
892
|
+
-249, 716, -249, -249, -249, -249, -249, -249, -249, -249,
|
893
|
+
-249, -249, -249, -249, 683, 88, -249, 169, 35, 55,
|
894
|
+
-249, -249, 165, 14, -249, -249, 194, -249, -249, -249,
|
895
|
+
716, -249, 69, -249, 716, -249, -249, -249, 384, 173,
|
896
|
+
716, -249, 176, 716, -249, 195, -249, 683, -249, 196,
|
897
|
+
203, -249, 716, -249, -249, -249, 683, 144, -249, -249,
|
898
|
+
-249, -249, -249, -249, -249, 205, -249, -249, 209, 418,
|
899
|
+
185, 452, 14, -249, -249, 192, 196, 214, 418, 452,
|
900
|
+
-249, -249, -249, 716, -249, -249, 716, 14, 683, -249,
|
901
|
+
-249, -249, 14, -249
|
900
902
|
};
|
901
903
|
|
902
904
|
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
|
@@ -917,53 +919,53 @@ static const yytype_uint8 yydefact[] =
|
|
917
919
|
0, 76, 12, 27, 0, 0, 76, 36, 0, 114,
|
918
920
|
79, 0, 76, 0, 76, 76, 131, 76, 131, 76,
|
919
921
|
0, 182, 0, 184, 0, 76, 176, 0, 76, 0,
|
920
|
-
180,
|
921
|
-
0,
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
0, 0,
|
937
|
-
50, 69, 71, 25, 23, 0, 76, 0, 75,
|
938
|
-
139, 76, 144
|
922
|
+
180, 185, 76, 76, 0, 103, 101, 36, 0, 38,
|
923
|
+
0, 32, 80, 0, 0, 117, 0, 0, 21, 0,
|
924
|
+
142, 0, 0, 76, 129, 76, 0, 127, 127, 0,
|
925
|
+
135, 133, 134, 145, 0, 145, 151, 0, 0, 0,
|
926
|
+
76, 37, 39, 0, 33, 35, 0, 116, 118, 0,
|
927
|
+
20, 22, 11, 127, 162, 127, 127, 145, 145, 151,
|
928
|
+
0, 158, 127, 0, 140, 127, 135, 132, 0, 138,
|
929
|
+
127, 178, 168, 177, 152, 0, 179, 104, 102, 31,
|
930
|
+
32, 45, 41, 59, 42, 0, 65, 53, 60, 43,
|
931
|
+
44, 0, 61, 50, 40, 46, 51, 48, 63, 47,
|
932
|
+
52, 49, 62, 119, 0, 127, 163, 0, 127, 127,
|
933
|
+
150, 130, 155, 76, 181, 159, 0, 183, 141, 136,
|
934
|
+
0, 148, 127, 153, 0, 34, 55, 57, 0, 0,
|
935
|
+
66, 67, 0, 72, 73, 0, 54, 0, 109, 24,
|
936
|
+
107, 143, 0, 156, 160, 157, 0, 142, 146, 149,
|
937
|
+
154, 56, 58, 64, 68, 0, 70, 74, 0, 0,
|
938
|
+
0, 0, 76, 108, 164, 161, 24, 0, 0, 0,
|
939
|
+
50, 69, 110, 71, 25, 23, 0, 76, 0, 75,
|
940
|
+
165, 139, 76, 144
|
939
941
|
};
|
940
942
|
|
941
943
|
/* YYPGOTO[NTERM-NUM]. */
|
942
944
|
static const yytype_int16 yypgoto[] =
|
943
945
|
{
|
944
|
-
-
|
945
|
-
-
|
946
|
-
|
947
|
-
-
|
948
|
-
|
949
|
-
-
|
950
|
-
80, -
|
951
|
-
54, -
|
952
|
-
-
|
946
|
+
-249, -249, -249, -249, 211, -249, -249, 0, -249, -249,
|
947
|
+
-249, 77, -70, 94, -67, -90, 17, -249, -98, -249,
|
948
|
+
91, -248, -165, -249, -249, -249, -249, 40, -249, -249,
|
949
|
+
-249, -249, -29, -249, -249, -249, -28, 23, -36, -63,
|
950
|
+
-13, -168, 1, -249, -249, -249, -249, -238, -249, -249,
|
951
|
+
-249, -249, 107, -127, -249, -249, 4, -249, -249, -76,
|
952
|
+
80, -249, -183, -18, -41, -12, -152, -249, -249, -249,
|
953
|
+
54, -249, -249, -185, 60, -249, -249, -249, -249, -249,
|
954
|
+
-249, -249, -249, -249, -249, -249, -249, -249, 147
|
953
955
|
};
|
954
956
|
|
955
957
|
/* YYDEFGOTO[NTERM-NUM]. */
|
956
958
|
static const yytype_int16 yydefgoto[] =
|
957
959
|
{
|
958
960
|
0, 9, 10, 11, 12, 13, 14, 61, 81, 112,
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
18, 109,
|
964
|
-
|
965
|
-
|
966
|
-
30, 31, 32, 33, 34, 35, 36, 37
|
961
|
+
147, 148, 292, 68, 69, 174, 175, 70, 106, 138,
|
962
|
+
139, 223, 301, 225, 226, 227, 258, 228, 229, 230,
|
963
|
+
259, 260, 261, 231, 262, 263, 264, 76, 77, 78,
|
964
|
+
71, 62, 72, 73, 74, 16, 64, 269, 270, 17,
|
965
|
+
18, 109, 144, 145, 19, 20, 193, 22, 23, 125,
|
966
|
+
161, 162, 194, 195, 184, 251, 201, 252, 24, 205,
|
967
|
+
206, 25, 26, 191, 192, 27, 28, 237, 295, 29,
|
968
|
+
30, 31, 32, 33, 34, 35, 36, 37, 132
|
967
969
|
};
|
968
970
|
|
969
971
|
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
|
@@ -971,54 +973,55 @@ static const yytype_int16 yydefgoto[] =
|
|
971
973
|
number is the opposite. If YYTABLE_NINF, syntax error. */
|
972
974
|
static const yytype_int16 yytable[] =
|
973
975
|
{
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
111,
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
0,
|
1001
|
-
0,
|
1002
|
-
0, 0,
|
1003
|
-
|
1004
|
-
|
1005
|
-
0, 0,
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
976
|
+
15, 103, 82, 63, 21, 232, 95, 245, 224, 142,
|
977
|
+
135, 15, 248, 203, 110, 21, 104, 178, 244, 247,
|
978
|
+
128, 75, 232, 7, 7, 90, 91, 92, 93, 290,
|
979
|
+
96, 97, 110, 105, 75, 240, 241, 178, 296, 170,
|
980
|
+
153, 300, 155, 304, -147, 79, 98, 232, -77, 7,
|
981
|
+
257, 309, 248, 245, 121, 123, 248, 126, 110, 182,
|
982
|
+
110, 130, 107, 110, 273, 94, 101, 110, 108, 7,
|
983
|
+
312, 114, 115, 116, 117, 118, 119, 207, 208, 180,
|
984
|
+
111, 113, 124, -3, 274, 131, 131, 146, 100, 7,
|
985
|
+
232, 137, 140, 282, 1, 4, 127, 2, 278, 5,
|
986
|
+
150, 177, 103, 7, 3, 134, 4, 8, 143, 75,
|
987
|
+
5, 160, -77, 120, 122, 105, 6, 7, 8, 271,
|
988
|
+
129, 232, 7, 232, 136, 140, 83, 143, 84, 141,
|
989
|
+
232, 232, 157, 179, 146, 149, 85, 151, 152, 86,
|
990
|
+
154, 4, 156, 158, 143, 5, 196, 202, 163, 199,
|
991
|
+
166, 165, 87, 8, 173, 167, 168, 88, 89, 1,
|
992
|
+
176, 190, 2, 233, 143, 235, 183, 185, 239, 3,
|
993
|
+
189, 4, 186, 222, 198, 5, 187, 7, 188, 200,
|
994
|
+
246, 6, 7, 8, 236, 249, 234, 38, 204, 190,
|
995
|
+
222, 254, 253, 210, 272, 39, 190, 4, 40, 276,
|
996
|
+
289, 5, 283, 265, 250, 286, 291, 293, 266, 8,
|
997
|
+
298, 41, 42, 302, 299, 222, 43, 44, 306, 308,
|
998
|
+
-137, 268, 80, -137, 181, -137, 307, 255, 169, 172,
|
999
|
+
243, 284, -137, -137, 164, 287, 297, 277, -137, 197,
|
1000
|
+
279, 280, 190, 242, -137, 238, 133, 285, 0, 0,
|
1001
|
+
288, 0, 0, 0, 268, 0, 250, 0, 222, 294,
|
1002
|
+
0, 0, 0, 268, 0, 0, 275, 0, 0, 0,
|
1003
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
1004
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 222,
|
1005
|
+
288, 222, 0, 310, 0, 268, 0, 0, 222, 222,
|
1006
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
1007
|
+
0, 0, 0, 0, 0, 305, 0, 0, 0, 0,
|
1008
|
+
159, 0, 0, 45, 0, 46, 0, 0, 47, 48,
|
1009
|
+
311, 49, 50, 51, 52, 313, 53, 0, 0, 0,
|
1010
|
+
4, 54, 66, 0, 5, 0, 0, 55, 0, 56,
|
1011
|
+
57, 0, 8, 58, 59, 60, 45, 0, 46, 0,
|
1012
|
+
0, 47, 211, 212, 49, 213, 51, 52, 214, 53,
|
1013
|
+
215, 216, 0, 4, 217, 218, 0, 5, 256, 0,
|
1014
|
+
55, 0, 56, 57, 219, 8, 220, 59, 60, 221,
|
1015
|
+
45, 0, 46, 0, 0, 47, 211, 212, 49, 213,
|
1016
|
+
51, 52, 214, 53, 215, 216, 0, 4, 217, 218,
|
1017
|
+
0, 5, 281, 0, 55, 0, 56, 57, 219, 8,
|
1018
|
+
220, 59, 60, 221, 45, 0, 46, 0, 0, 47,
|
1019
|
+
211, 212, 49, 213, 51, 52, 214, 53, 215, 216,
|
1020
|
+
0, 4, 217, 218, 0, 5, 0, 0, 55, 0,
|
1021
|
+
56, 57, 219, 8, 220, 59, 60, 221, 45, 0,
|
1022
|
+
46, 0, 0, 47, 211, 212, 49, 213, 51, 52,
|
1023
|
+
214, 53, 215, 303, 0, 4, 217, 218, 0, 5,
|
1024
|
+
0, 0, 55, 0, 56, 57, 219, 8, 220, 59,
|
1022
1025
|
60, 45, 0, 46, 65, 0, 47, 48, 0, 49,
|
1023
1026
|
50, 51, 52, 0, 53, 0, 0, 0, 4, 54,
|
1024
1027
|
66, 0, 5, 0, 67, 55, 0, 56, 57, 0,
|
@@ -1028,66 +1031,71 @@ static const yytype_int16 yytable[] =
|
|
1028
1031
|
56, 57, 0, 8, 58, 59, 60, 45, 0, 46,
|
1029
1032
|
65, 0, 47, 48, 0, 49, 50, 51, 52, 0,
|
1030
1033
|
53, 0, 0, 0, 4, 54, 66, 0, 5, 0,
|
1031
|
-
|
1034
|
+
209, 55, 0, 56, 57, 0, 8, 58, 59, 60,
|
1032
1035
|
45, 75, 46, 0, 0, 47, 48, 0, 49, 50,
|
1033
1036
|
51, 52, 0, 53, 0, 0, 0, 4, 54, 99,
|
1034
1037
|
0, 5, 0, 0, 55, 0, 56, 57, 0, 8,
|
1035
|
-
58, 59, 60, 45, 0, 46,
|
1036
|
-
0, 49, 50, 51, 52, 0, 53,
|
1038
|
+
58, 59, 60, 45, 0, 46, 65, 0, 47, 48,
|
1039
|
+
0, 49, 50, 51, 52, 0, 53, 0, 0, 0,
|
1037
1040
|
4, 54, 66, 0, 5, 0, 0, 55, 0, 56,
|
1038
|
-
57, 0, 8, 58, 59, 60, 45, 0, 46,
|
1041
|
+
57, 0, 8, 58, 59, 60, 45, 0, 46, 0,
|
1039
1042
|
0, 47, 48, 0, 49, 50, 51, 52, 0, 53,
|
1040
1043
|
0, 0, 0, 4, 54, 66, 0, 5, 0, 0,
|
1041
|
-
55,
|
1044
|
+
55, 171, 56, 57, 0, 8, 58, 59, 60, 45,
|
1042
1045
|
0, 46, 0, 0, 47, 48, 0, 49, 50, 51,
|
1043
|
-
52, 0, 53,
|
1044
|
-
5, 0, 0, 55,
|
1046
|
+
52, 0, 53, 267, 0, 0, 4, 54, 66, 0,
|
1047
|
+
5, 0, 0, 55, 0, 56, 57, 0, 8, 58,
|
1045
1048
|
59, 60, 45, 0, 46, 0, 0, 47, 48, 0,
|
1046
1049
|
49, 50, 51, 52, 0, 53, 0, 0, 0, 4,
|
1047
1050
|
54, 66, 0, 5, 0, 0, 55, 0, 56, 57,
|
1048
1051
|
0, 8, 58, 59, 60, 45, 0, 46, 0, 0,
|
1049
1052
|
47, 48, 0, 49, 50, 51, 52, 0, 53, 0,
|
1050
1053
|
0, 0, 4, 54, 0, 0, 5, 0, 0, 55,
|
1051
|
-
0, 56, 57, 0, 8, 58, 59, 60
|
1054
|
+
0, 56, 57, 0, 8, 58, 59, 60, 45, 0,
|
1055
|
+
46, 0, 0, 47, 0, 0, 49, 213, 51, 52,
|
1056
|
+
0, 53, 0, 0, 0, 4, 0, 218, 0, 5,
|
1057
|
+
0, 0, 55, 0, 56, 57, 0, 8, 0, 59,
|
1058
|
+
60
|
1052
1059
|
};
|
1053
1060
|
|
1054
1061
|
static const yytype_int16 yycheck[] =
|
1055
1062
|
{
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
22,
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
5, 29,
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
-1,
|
1083
|
-
-1,
|
1084
|
-
-1, -1,
|
1085
|
-
|
1086
|
-
|
1087
|
-
-1, -1,
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1063
|
+
0, 68, 15, 2, 0, 173, 42, 192, 173, 107,
|
1064
|
+
100, 11, 195, 165, 77, 11, 5, 144, 29, 29,
|
1065
|
+
96, 7, 190, 34, 34, 38, 39, 40, 41, 267,
|
1066
|
+
43, 44, 95, 22, 7, 187, 188, 164, 276, 137,
|
1067
|
+
116, 289, 118, 291, 29, 0, 25, 215, 21, 34,
|
1068
|
+
215, 299, 235, 238, 90, 91, 239, 93, 121, 149,
|
1069
|
+
123, 97, 75, 126, 29, 42, 65, 130, 21, 34,
|
1070
|
+
308, 84, 85, 86, 87, 88, 89, 167, 168, 31,
|
1071
|
+
22, 7, 17, 0, 29, 98, 99, 39, 65, 34,
|
1072
|
+
258, 104, 105, 258, 11, 23, 21, 14, 29, 27,
|
1073
|
+
113, 29, 169, 34, 21, 21, 23, 35, 108, 7,
|
1074
|
+
27, 124, 10, 90, 91, 22, 33, 34, 35, 31,
|
1075
|
+
97, 289, 34, 291, 101, 138, 6, 127, 8, 106,
|
1076
|
+
298, 299, 21, 146, 39, 112, 16, 114, 115, 19,
|
1077
|
+
117, 23, 119, 21, 144, 27, 159, 29, 125, 162,
|
1078
|
+
10, 128, 32, 35, 5, 132, 133, 37, 38, 11,
|
1079
|
+
5, 157, 14, 176, 164, 183, 22, 21, 186, 21,
|
1080
|
+
10, 23, 21, 173, 3, 27, 153, 34, 155, 21,
|
1081
|
+
193, 33, 34, 35, 30, 198, 5, 8, 26, 185,
|
1082
|
+
190, 26, 205, 170, 25, 16, 192, 23, 19, 5,
|
1083
|
+
5, 27, 29, 216, 200, 29, 10, 4, 221, 35,
|
1084
|
+
5, 32, 33, 28, 5, 215, 37, 38, 26, 5,
|
1085
|
+
12, 234, 11, 15, 147, 17, 296, 210, 134, 138,
|
1086
|
+
190, 260, 24, 25, 127, 263, 277, 250, 30, 159,
|
1087
|
+
252, 254, 238, 189, 36, 185, 99, 260, -1, -1,
|
1088
|
+
263, -1, -1, -1, 267, -1, 252, -1, 258, 272,
|
1089
|
+
-1, -1, -1, 276, -1, -1, 243, -1, -1, -1,
|
1090
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
1091
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, 289,
|
1092
|
+
303, 291, -1, 306, -1, 308, -1, -1, 298, 299,
|
1093
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
1094
|
+
-1, -1, -1, -1, -1, 292, -1, -1, -1, -1,
|
1095
|
+
3, -1, -1, 6, -1, 8, -1, -1, 11, 12,
|
1096
|
+
307, 14, 15, 16, 17, 312, 19, -1, -1, -1,
|
1097
|
+
23, 24, 25, -1, 27, -1, -1, 30, -1, 32,
|
1098
|
+
33, -1, 35, 36, 37, 38, 6, -1, 8, -1,
|
1091
1099
|
-1, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
1092
1100
|
20, 21, -1, 23, 24, 25, -1, 27, 28, -1,
|
1093
1101
|
30, -1, 32, 33, 34, 35, 36, 37, 38, 39,
|
@@ -1114,28 +1122,32 @@ static const yytype_int16 yycheck[] =
|
|
1114
1122
|
6, 7, 8, -1, -1, 11, 12, -1, 14, 15,
|
1115
1123
|
16, 17, -1, 19, -1, -1, -1, 23, 24, 25,
|
1116
1124
|
-1, 27, -1, -1, 30, -1, 32, 33, -1, 35,
|
1117
|
-
36, 37, 38, 6, -1, 8,
|
1118
|
-
-1, 14, 15, 16, 17, -1, 19,
|
1125
|
+
36, 37, 38, 6, -1, 8, 9, -1, 11, 12,
|
1126
|
+
-1, 14, 15, 16, 17, -1, 19, -1, -1, -1,
|
1119
1127
|
23, 24, 25, -1, 27, -1, -1, 30, -1, 32,
|
1120
|
-
33, -1, 35, 36, 37, 38, 6, -1, 8,
|
1128
|
+
33, -1, 35, 36, 37, 38, 6, -1, 8, -1,
|
1121
1129
|
-1, 11, 12, -1, 14, 15, 16, 17, -1, 19,
|
1122
1130
|
-1, -1, -1, 23, 24, 25, -1, 27, -1, -1,
|
1123
|
-
30,
|
1131
|
+
30, 31, 32, 33, -1, 35, 36, 37, 38, 6,
|
1124
1132
|
-1, 8, -1, -1, 11, 12, -1, 14, 15, 16,
|
1125
|
-
17, -1, 19,
|
1126
|
-
27, -1, -1, 30,
|
1133
|
+
17, -1, 19, 20, -1, -1, 23, 24, 25, -1,
|
1134
|
+
27, -1, -1, 30, -1, 32, 33, -1, 35, 36,
|
1127
1135
|
37, 38, 6, -1, 8, -1, -1, 11, 12, -1,
|
1128
1136
|
14, 15, 16, 17, -1, 19, -1, -1, -1, 23,
|
1129
1137
|
24, 25, -1, 27, -1, -1, 30, -1, 32, 33,
|
1130
1138
|
-1, 35, 36, 37, 38, 6, -1, 8, -1, -1,
|
1131
1139
|
11, 12, -1, 14, 15, 16, 17, -1, 19, -1,
|
1132
1140
|
-1, -1, 23, 24, -1, -1, 27, -1, -1, 30,
|
1133
|
-
-1, 32, 33, -1, 35, 36, 37, 38
|
1141
|
+
-1, 32, 33, -1, 35, 36, 37, 38, 6, -1,
|
1142
|
+
8, -1, -1, 11, -1, -1, 14, 15, 16, 17,
|
1143
|
+
-1, 19, -1, -1, -1, 23, -1, 25, -1, 27,
|
1144
|
+
-1, -1, 30, -1, 32, 33, -1, 35, -1, 37,
|
1145
|
+
38
|
1134
1146
|
};
|
1135
1147
|
|
1136
1148
|
/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
|
1137
1149
|
state STATE-NUM. */
|
1138
|
-
static const
|
1150
|
+
static const yytype_uint8 yystos[] =
|
1139
1151
|
{
|
1140
1152
|
0, 11, 14, 21, 23, 27, 33, 34, 35, 41,
|
1141
1153
|
42, 43, 44, 45, 46, 47, 85, 89, 90, 94,
|
@@ -1150,29 +1162,29 @@ static const yytype_int8 yystos[] =
|
|
1150
1162
|
77, 82, 29, 54, 5, 22, 58, 80, 21, 91,
|
1151
1163
|
79, 22, 49, 7, 80, 80, 80, 80, 80, 80,
|
1152
1164
|
77, 78, 77, 78, 17, 99, 78, 21, 99, 77,
|
1153
|
-
78,
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
61, 62, 21, 61, 77, 26, 52, 5, 61,
|
1171
|
-
77, 87, 77
|
1165
|
+
78, 80, 128, 128, 21, 55, 77, 80, 59, 60,
|
1166
|
+
80, 77, 58, 47, 92, 93, 39, 50, 51, 77,
|
1167
|
+
80, 77, 77, 99, 77, 99, 77, 21, 21, 3,
|
1168
|
+
80, 100, 101, 77, 92, 77, 10, 77, 77, 53,
|
1169
|
+
58, 31, 60, 5, 55, 56, 5, 29, 93, 80,
|
1170
|
+
31, 51, 55, 22, 104, 21, 21, 77, 77, 10,
|
1171
|
+
96, 113, 114, 96, 102, 103, 80, 100, 3, 80,
|
1172
|
+
21, 106, 29, 106, 26, 109, 110, 55, 55, 29,
|
1173
|
+
77, 12, 13, 15, 18, 20, 21, 24, 25, 34,
|
1174
|
+
36, 39, 47, 61, 62, 63, 64, 65, 67, 68,
|
1175
|
+
69, 73, 81, 80, 5, 103, 30, 117, 114, 103,
|
1176
|
+
106, 106, 110, 67, 29, 113, 80, 29, 102, 80,
|
1177
|
+
96, 105, 107, 80, 26, 56, 28, 62, 66, 70,
|
1178
|
+
71, 72, 74, 75, 76, 80, 80, 20, 80, 87,
|
1179
|
+
88, 31, 25, 29, 29, 77, 5, 80, 29, 105,
|
1180
|
+
80, 28, 62, 29, 72, 80, 29, 76, 80, 5,
|
1181
|
+
87, 10, 52, 4, 80, 118, 87, 104, 5, 5,
|
1182
|
+
61, 62, 28, 21, 61, 77, 26, 52, 5, 61,
|
1183
|
+
80, 77, 87, 77
|
1172
1184
|
};
|
1173
1185
|
|
1174
1186
|
/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
|
1175
|
-
static const
|
1187
|
+
static const yytype_uint8 yyr1[] =
|
1176
1188
|
{
|
1177
1189
|
0, 40, 41, 42, 43, 43, 44, 44, 44, 45,
|
1178
1190
|
45, 46, 46, 46, 47, 47, 47, 48, 48, 49,
|
@@ -1192,7 +1204,7 @@ static const yytype_int8 yyr1[] =
|
|
1192
1204
|
108, 109, 109, 110, 110, 111, 112, 113, 114, 114,
|
1193
1205
|
115, 116, 117, 117, 118, 118, 119, 119, 120, 120,
|
1194
1206
|
121, 121, 121, 121, 121, 121, 122, 123, 124, 125,
|
1195
|
-
125, 126, 126, 127, 127
|
1207
|
+
125, 126, 126, 127, 127, 128
|
1196
1208
|
};
|
1197
1209
|
|
1198
1210
|
/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
|
@@ -1216,7 +1228,7 @@ static const yytype_int8 yyr2[] =
|
|
1216
1228
|
6, 0, 1, 2, 3, 6, 7, 3, 1, 2,
|
1217
1229
|
7, 8, 0, 1, 1, 3, 1, 1, 6, 3,
|
1218
1230
|
1, 1, 1, 1, 1, 1, 4, 6, 6, 6,
|
1219
|
-
4, 7, 4, 7, 4
|
1231
|
+
4, 7, 4, 7, 4, 1
|
1220
1232
|
};
|
1221
1233
|
|
1222
1234
|
|
@@ -1911,13 +1923,13 @@ yyreduce:
|
|
1911
1923
|
switch (yyn)
|
1912
1924
|
{
|
1913
1925
|
case 2: /* start: document */
|
1914
|
-
#line
|
1926
|
+
#line 105 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1915
1927
|
{ rb_ivar_set(parser, rb_intern("@result"), yyvsp[0]); }
|
1916
|
-
#line
|
1928
|
+
#line 1929 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1917
1929
|
break;
|
1918
1930
|
|
1919
1931
|
case 3: /* document: definitions_list */
|
1920
|
-
#line
|
1932
|
+
#line 107 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1921
1933
|
{
|
1922
1934
|
VALUE position_source = rb_ary_entry(yyvsp[0], 0);
|
1923
1935
|
VALUE line, col;
|
@@ -1930,23 +1942,23 @@ yyreduce:
|
|
1930
1942
|
}
|
1931
1943
|
yyval = MAKE_AST_NODE(Document, 3, line, col, yyvsp[0]);
|
1932
1944
|
}
|
1933
|
-
#line
|
1945
|
+
#line 1946 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1934
1946
|
break;
|
1935
1947
|
|
1936
1948
|
case 4: /* definitions_list: definition */
|
1937
|
-
#line
|
1949
|
+
#line 121 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1938
1950
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
1939
|
-
#line
|
1951
|
+
#line 1952 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1940
1952
|
break;
|
1941
1953
|
|
1942
1954
|
case 5: /* definitions_list: definitions_list definition */
|
1943
|
-
#line
|
1955
|
+
#line 122 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1944
1956
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
1945
|
-
#line
|
1957
|
+
#line 1958 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1946
1958
|
break;
|
1947
1959
|
|
1948
1960
|
case 11: /* operation_definition: operation_type operation_name_opt variable_definitions_opt directives_list_opt selection_set */
|
1949
|
-
#line
|
1961
|
+
#line 134 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1950
1962
|
{
|
1951
1963
|
yyval = MAKE_AST_NODE(OperationDefinition, 7,
|
1952
1964
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -1958,11 +1970,11 @@ yyreduce:
|
|
1958
1970
|
yyvsp[0]
|
1959
1971
|
);
|
1960
1972
|
}
|
1961
|
-
#line
|
1973
|
+
#line 1974 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1962
1974
|
break;
|
1963
1975
|
|
1964
1976
|
case 12: /* operation_definition: LCURLY selection_list RCURLY */
|
1965
|
-
#line
|
1977
|
+
#line 145 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1966
1978
|
{
|
1967
1979
|
yyval = MAKE_AST_NODE(OperationDefinition, 7,
|
1968
1980
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -1974,11 +1986,11 @@ yyreduce:
|
|
1974
1986
|
yyvsp[-1]
|
1975
1987
|
);
|
1976
1988
|
}
|
1977
|
-
#line
|
1989
|
+
#line 1990 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1978
1990
|
break;
|
1979
1991
|
|
1980
1992
|
case 13: /* operation_definition: LCURLY RCURLY */
|
1981
|
-
#line
|
1993
|
+
#line 156 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1982
1994
|
{
|
1983
1995
|
yyval = MAKE_AST_NODE(OperationDefinition, 7,
|
1984
1996
|
rb_ary_entry(yyvsp[-1], 1),
|
@@ -1990,41 +2002,41 @@ yyreduce:
|
|
1990
2002
|
GraphQL_Language_Nodes_NONE
|
1991
2003
|
);
|
1992
2004
|
}
|
1993
|
-
#line
|
2005
|
+
#line 2006 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1994
2006
|
break;
|
1995
2007
|
|
1996
2008
|
case 17: /* operation_name_opt: %empty */
|
1997
|
-
#line
|
2009
|
+
#line 174 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1998
2010
|
{ yyval = Qnil; }
|
1999
|
-
#line
|
2011
|
+
#line 2012 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2000
2012
|
break;
|
2001
2013
|
|
2002
2014
|
case 19: /* variable_definitions_opt: %empty */
|
2003
|
-
#line
|
2015
|
+
#line 178 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2004
2016
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2005
|
-
#line
|
2017
|
+
#line 2018 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2006
2018
|
break;
|
2007
2019
|
|
2008
2020
|
case 20: /* variable_definitions_opt: LPAREN variable_definitions_list RPAREN */
|
2009
|
-
#line
|
2021
|
+
#line 179 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2010
2022
|
{ yyval = yyvsp[-1]; }
|
2011
|
-
#line
|
2023
|
+
#line 2024 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2012
2024
|
break;
|
2013
2025
|
|
2014
2026
|
case 21: /* variable_definitions_list: variable_definition */
|
2015
|
-
#line
|
2027
|
+
#line 182 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2016
2028
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2017
|
-
#line
|
2029
|
+
#line 2030 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2018
2030
|
break;
|
2019
2031
|
|
2020
2032
|
case 22: /* variable_definitions_list: variable_definitions_list variable_definition */
|
2021
|
-
#line
|
2033
|
+
#line 183 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2022
2034
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2023
|
-
#line
|
2035
|
+
#line 2036 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2024
2036
|
break;
|
2025
2037
|
|
2026
2038
|
case 23: /* variable_definition: VAR_SIGN name COLON type default_value_opt directives_list_opt */
|
2027
|
-
#line
|
2039
|
+
#line 186 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2028
2040
|
{
|
2029
2041
|
yyval = MAKE_AST_NODE(VariableDefinition, 6,
|
2030
2042
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2035,47 +2047,47 @@ yyreduce:
|
|
2035
2047
|
yyvsp[0]
|
2036
2048
|
);
|
2037
2049
|
}
|
2038
|
-
#line
|
2050
|
+
#line 2051 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2039
2051
|
break;
|
2040
2052
|
|
2041
2053
|
case 24: /* default_value_opt: %empty */
|
2042
|
-
#line
|
2054
|
+
#line 198 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2043
2055
|
{ yyval = Qnil; }
|
2044
|
-
#line
|
2056
|
+
#line 2057 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2045
2057
|
break;
|
2046
2058
|
|
2047
2059
|
case 25: /* default_value_opt: EQUALS literal_value */
|
2048
|
-
#line
|
2060
|
+
#line 199 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2049
2061
|
{ yyval = yyvsp[0]; }
|
2050
|
-
#line
|
2062
|
+
#line 2063 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2051
2063
|
break;
|
2052
2064
|
|
2053
2065
|
case 26: /* selection_list: selection */
|
2054
|
-
#line
|
2066
|
+
#line 202 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2055
2067
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2056
|
-
#line
|
2068
|
+
#line 2069 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2057
2069
|
break;
|
2058
2070
|
|
2059
2071
|
case 27: /* selection_list: selection_list selection */
|
2060
|
-
#line
|
2072
|
+
#line 203 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2061
2073
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2062
|
-
#line
|
2074
|
+
#line 2075 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2063
2075
|
break;
|
2064
2076
|
|
2065
2077
|
case 31: /* selection_set: LCURLY selection_list RCURLY */
|
2066
|
-
#line
|
2078
|
+
#line 211 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2067
2079
|
{ yyval = yyvsp[-1]; }
|
2068
|
-
#line
|
2080
|
+
#line 2081 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2069
2081
|
break;
|
2070
2082
|
|
2071
2083
|
case 32: /* selection_set_opt: %empty */
|
2072
|
-
#line
|
2084
|
+
#line 214 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2073
2085
|
{ yyval = rb_ary_new(); }
|
2074
|
-
#line
|
2086
|
+
#line 2087 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2075
2087
|
break;
|
2076
2088
|
|
2077
2089
|
case 34: /* field: name COLON name arguments_opt directives_list_opt selection_set_opt */
|
2078
|
-
#line
|
2090
|
+
#line 218 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2079
2091
|
{
|
2080
2092
|
yyval = MAKE_AST_NODE(Field, 7,
|
2081
2093
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2087,11 +2099,11 @@ yyreduce:
|
|
2087
2099
|
yyvsp[0] // subselections
|
2088
2100
|
);
|
2089
2101
|
}
|
2090
|
-
#line
|
2102
|
+
#line 2103 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2091
2103
|
break;
|
2092
2104
|
|
2093
2105
|
case 35: /* field: name arguments_opt directives_list_opt selection_set_opt */
|
2094
|
-
#line
|
2106
|
+
#line 229 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2095
2107
|
{
|
2096
2108
|
yyval = MAKE_AST_NODE(Field, 7,
|
2097
2109
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2103,35 +2115,35 @@ yyreduce:
|
|
2103
2115
|
yyvsp[0] // subselections
|
2104
2116
|
);
|
2105
2117
|
}
|
2106
|
-
#line
|
2118
|
+
#line 2119 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2107
2119
|
break;
|
2108
2120
|
|
2109
2121
|
case 36: /* arguments_opt: %empty */
|
2110
|
-
#line
|
2122
|
+
#line 242 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2111
2123
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2112
|
-
#line
|
2124
|
+
#line 2125 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2113
2125
|
break;
|
2114
2126
|
|
2115
2127
|
case 37: /* arguments_opt: LPAREN arguments_list RPAREN */
|
2116
|
-
#line
|
2128
|
+
#line 243 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2117
2129
|
{ yyval = yyvsp[-1]; }
|
2118
|
-
#line
|
2130
|
+
#line 2131 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2119
2131
|
break;
|
2120
2132
|
|
2121
2133
|
case 38: /* arguments_list: argument */
|
2122
|
-
#line
|
2134
|
+
#line 246 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2123
2135
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2124
|
-
#line
|
2136
|
+
#line 2137 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2125
2137
|
break;
|
2126
2138
|
|
2127
2139
|
case 39: /* arguments_list: arguments_list argument */
|
2128
|
-
#line
|
2140
|
+
#line 247 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2129
2141
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2130
|
-
#line
|
2142
|
+
#line 2143 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2131
2143
|
break;
|
2132
2144
|
|
2133
2145
|
case 40: /* argument: name COLON input_value */
|
2134
|
-
#line
|
2146
|
+
#line 250 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2135
2147
|
{
|
2136
2148
|
yyval = MAKE_AST_NODE(Argument, 4,
|
2137
2149
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2140,41 +2152,41 @@ yyreduce:
|
|
2140
2152
|
yyvsp[0]
|
2141
2153
|
);
|
2142
2154
|
}
|
2143
|
-
#line
|
2155
|
+
#line 2156 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2144
2156
|
break;
|
2145
2157
|
|
2146
2158
|
case 41: /* literal_value: FLOAT */
|
2147
|
-
#line
|
2159
|
+
#line 260 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2148
2160
|
{ yyval = rb_funcall(rb_ary_entry(yyvsp[0], 3), rb_intern("to_f"), 0); }
|
2149
|
-
#line
|
2161
|
+
#line 2162 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2150
2162
|
break;
|
2151
2163
|
|
2152
2164
|
case 42: /* literal_value: INT */
|
2153
|
-
#line
|
2165
|
+
#line 261 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2154
2166
|
{ yyval = rb_funcall(rb_ary_entry(yyvsp[0], 3), rb_intern("to_i"), 0); }
|
2155
|
-
#line
|
2167
|
+
#line 2168 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2156
2168
|
break;
|
2157
2169
|
|
2158
2170
|
case 43: /* literal_value: STRING */
|
2159
|
-
#line
|
2171
|
+
#line 262 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2160
2172
|
{ yyval = rb_ary_entry(yyvsp[0], 3); }
|
2161
|
-
#line
|
2173
|
+
#line 2174 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2162
2174
|
break;
|
2163
2175
|
|
2164
2176
|
case 44: /* literal_value: TRUE_LITERAL */
|
2165
|
-
#line
|
2177
|
+
#line 263 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2166
2178
|
{ yyval = Qtrue; }
|
2167
|
-
#line
|
2179
|
+
#line 2180 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2168
2180
|
break;
|
2169
2181
|
|
2170
2182
|
case 45: /* literal_value: FALSE_LITERAL */
|
2171
|
-
#line
|
2183
|
+
#line 264 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2172
2184
|
{ yyval = Qfalse; }
|
2173
|
-
#line
|
2185
|
+
#line 2186 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2174
2186
|
break;
|
2175
2187
|
|
2176
2188
|
case 53: /* null_value: NULL_LITERAL */
|
2177
|
-
#line
|
2189
|
+
#line 275 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2178
2190
|
{
|
2179
2191
|
yyval = MAKE_AST_NODE(NullValue, 3,
|
2180
2192
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2182,11 +2194,11 @@ yyreduce:
|
|
2182
2194
|
rb_ary_entry(yyvsp[0], 3)
|
2183
2195
|
);
|
2184
2196
|
}
|
2185
|
-
#line
|
2197
|
+
#line 2198 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2186
2198
|
break;
|
2187
2199
|
|
2188
2200
|
case 54: /* variable: VAR_SIGN name */
|
2189
|
-
#line
|
2201
|
+
#line 283 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2190
2202
|
{
|
2191
2203
|
yyval = MAKE_AST_NODE(VariableIdentifier, 3,
|
2192
2204
|
rb_ary_entry(yyvsp[-1], 1),
|
@@ -2194,35 +2206,35 @@ yyreduce:
|
|
2194
2206
|
rb_ary_entry(yyvsp[0], 3)
|
2195
2207
|
);
|
2196
2208
|
}
|
2197
|
-
#line
|
2209
|
+
#line 2210 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2198
2210
|
break;
|
2199
2211
|
|
2200
2212
|
case 55: /* list_value: LBRACKET RBRACKET */
|
2201
|
-
#line
|
2213
|
+
#line 292 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2202
2214
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2203
|
-
#line
|
2215
|
+
#line 2216 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2204
2216
|
break;
|
2205
2217
|
|
2206
2218
|
case 56: /* list_value: LBRACKET list_value_list RBRACKET */
|
2207
|
-
#line
|
2219
|
+
#line 293 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2208
2220
|
{ yyval = yyvsp[-1]; }
|
2209
|
-
#line
|
2221
|
+
#line 2222 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2210
2222
|
break;
|
2211
2223
|
|
2212
2224
|
case 57: /* list_value_list: input_value */
|
2213
|
-
#line
|
2225
|
+
#line 296 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2214
2226
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2215
|
-
#line
|
2227
|
+
#line 2228 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2216
2228
|
break;
|
2217
2229
|
|
2218
2230
|
case 58: /* list_value_list: list_value_list input_value */
|
2219
|
-
#line
|
2231
|
+
#line 297 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2220
2232
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2221
|
-
#line
|
2233
|
+
#line 2234 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2222
2234
|
break;
|
2223
2235
|
|
2224
2236
|
case 63: /* enum_value: enum_name */
|
2225
|
-
#line
|
2237
|
+
#line 305 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2226
2238
|
{
|
2227
2239
|
yyval = MAKE_AST_NODE(Enum, 3,
|
2228
2240
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2230,11 +2242,11 @@ yyreduce:
|
|
2230
2242
|
rb_ary_entry(yyvsp[0], 3)
|
2231
2243
|
);
|
2232
2244
|
}
|
2233
|
-
#line
|
2245
|
+
#line 2246 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2234
2246
|
break;
|
2235
2247
|
|
2236
2248
|
case 64: /* object_value: LCURLY object_value_list_opt RCURLY */
|
2237
|
-
#line
|
2249
|
+
#line 314 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2238
2250
|
{
|
2239
2251
|
yyval = MAKE_AST_NODE(InputObject, 3,
|
2240
2252
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2242,29 +2254,29 @@ yyreduce:
|
|
2242
2254
|
yyvsp[-1]
|
2243
2255
|
);
|
2244
2256
|
}
|
2245
|
-
#line
|
2257
|
+
#line 2258 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2246
2258
|
break;
|
2247
2259
|
|
2248
2260
|
case 65: /* object_value_list_opt: %empty */
|
2249
|
-
#line
|
2261
|
+
#line 323 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2250
2262
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2251
|
-
#line
|
2263
|
+
#line 2264 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2252
2264
|
break;
|
2253
2265
|
|
2254
2266
|
case 67: /* object_value_list: object_value_field */
|
2255
|
-
#line
|
2267
|
+
#line 327 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2256
2268
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2257
|
-
#line
|
2269
|
+
#line 2270 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2258
2270
|
break;
|
2259
2271
|
|
2260
2272
|
case 68: /* object_value_list: object_value_list object_value_field */
|
2261
|
-
#line
|
2273
|
+
#line 328 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2262
2274
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2263
|
-
#line
|
2275
|
+
#line 2276 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2264
2276
|
break;
|
2265
2277
|
|
2266
2278
|
case 69: /* object_value_field: name COLON input_value */
|
2267
|
-
#line
|
2279
|
+
#line 331 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2268
2280
|
{
|
2269
2281
|
yyval = MAKE_AST_NODE(Argument, 4,
|
2270
2282
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2273,11 +2285,11 @@ yyreduce:
|
|
2273
2285
|
yyvsp[0]
|
2274
2286
|
);
|
2275
2287
|
}
|
2276
|
-
#line
|
2288
|
+
#line 2289 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2277
2289
|
break;
|
2278
2290
|
|
2279
2291
|
case 70: /* object_literal_value: LCURLY object_literal_value_list_opt RCURLY */
|
2280
|
-
#line
|
2292
|
+
#line 342 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2281
2293
|
{
|
2282
2294
|
yyval = MAKE_AST_NODE(InputObject, 3,
|
2283
2295
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2285,29 +2297,29 @@ yyreduce:
|
|
2285
2297
|
yyvsp[-1]
|
2286
2298
|
);
|
2287
2299
|
}
|
2288
|
-
#line
|
2300
|
+
#line 2301 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2289
2301
|
break;
|
2290
2302
|
|
2291
2303
|
case 71: /* object_literal_value_list_opt: %empty */
|
2292
|
-
#line
|
2304
|
+
#line 351 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2293
2305
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2294
|
-
#line
|
2306
|
+
#line 2307 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2295
2307
|
break;
|
2296
2308
|
|
2297
2309
|
case 73: /* object_literal_value_list: object_literal_value_field */
|
2298
|
-
#line
|
2310
|
+
#line 355 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2299
2311
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2300
|
-
#line
|
2312
|
+
#line 2313 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2301
2313
|
break;
|
2302
2314
|
|
2303
2315
|
case 74: /* object_literal_value_list: object_literal_value_list object_literal_value_field */
|
2304
|
-
#line
|
2316
|
+
#line 356 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2305
2317
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2306
|
-
#line
|
2318
|
+
#line 2319 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2307
2319
|
break;
|
2308
2320
|
|
2309
2321
|
case 75: /* object_literal_value_field: name COLON literal_value */
|
2310
|
-
#line
|
2322
|
+
#line 359 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2311
2323
|
{
|
2312
2324
|
yyval = MAKE_AST_NODE(Argument, 4,
|
2313
2325
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2316,29 +2328,29 @@ yyreduce:
|
|
2316
2328
|
yyvsp[0]
|
2317
2329
|
);
|
2318
2330
|
}
|
2319
|
-
#line
|
2331
|
+
#line 2332 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2320
2332
|
break;
|
2321
2333
|
|
2322
2334
|
case 76: /* directives_list_opt: %empty */
|
2323
|
-
#line
|
2335
|
+
#line 370 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2324
2336
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2325
|
-
#line
|
2337
|
+
#line 2338 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2326
2338
|
break;
|
2327
2339
|
|
2328
2340
|
case 78: /* directives_list: directive */
|
2329
|
-
#line
|
2341
|
+
#line 374 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2330
2342
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2331
|
-
#line
|
2343
|
+
#line 2344 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2332
2344
|
break;
|
2333
2345
|
|
2334
2346
|
case 79: /* directives_list: directives_list directive */
|
2335
|
-
#line
|
2347
|
+
#line 375 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2336
2348
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2337
|
-
#line
|
2349
|
+
#line 2350 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2338
2350
|
break;
|
2339
2351
|
|
2340
2352
|
case 80: /* directive: DIR_SIGN name arguments_opt */
|
2341
|
-
#line
|
2353
|
+
#line 377 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2342
2354
|
{
|
2343
2355
|
yyval = MAKE_AST_NODE(Directive, 4,
|
2344
2356
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2347,11 +2359,11 @@ yyreduce:
|
|
2347
2359
|
yyvsp[0]
|
2348
2360
|
);
|
2349
2361
|
}
|
2350
|
-
#line
|
2362
|
+
#line 2363 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2351
2363
|
break;
|
2352
2364
|
|
2353
2365
|
case 101: /* fragment_spread: ELLIPSIS name_without_on directives_list_opt */
|
2354
|
-
#line
|
2366
|
+
#line 414 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2355
2367
|
{
|
2356
2368
|
yyval = MAKE_AST_NODE(FragmentSpread, 4,
|
2357
2369
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2360,12 +2372,12 @@ yyreduce:
|
|
2360
2372
|
yyvsp[0]
|
2361
2373
|
);
|
2362
2374
|
}
|
2363
|
-
#line
|
2375
|
+
#line 2376 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2364
2376
|
break;
|
2365
2377
|
|
2366
|
-
case 102: /* inline_fragment: ELLIPSIS ON
|
2367
|
-
#line
|
2368
|
-
|
2378
|
+
case 102: /* inline_fragment: ELLIPSIS ON NamedTypeForCondition directives_list_opt selection_set */
|
2379
|
+
#line 424 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2380
|
+
{
|
2369
2381
|
yyval = MAKE_AST_NODE(InlineFragment, 5,
|
2370
2382
|
rb_ary_entry(yyvsp[-4], 1),
|
2371
2383
|
rb_ary_entry(yyvsp[-4], 2),
|
@@ -2374,11 +2386,11 @@ yyreduce:
|
|
2374
2386
|
yyvsp[0]
|
2375
2387
|
);
|
2376
2388
|
}
|
2377
|
-
#line
|
2389
|
+
#line 2390 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2378
2390
|
break;
|
2379
2391
|
|
2380
2392
|
case 103: /* inline_fragment: ELLIPSIS directives_list_opt selection_set */
|
2381
|
-
#line
|
2393
|
+
#line 433 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2382
2394
|
{
|
2383
2395
|
yyval = MAKE_AST_NODE(InlineFragment, 5,
|
2384
2396
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2388,12 +2400,12 @@ yyreduce:
|
|
2388
2400
|
yyvsp[0]
|
2389
2401
|
);
|
2390
2402
|
}
|
2391
|
-
#line
|
2403
|
+
#line 2404 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2392
2404
|
break;
|
2393
2405
|
|
2394
|
-
case 104: /* fragment_definition: FRAGMENT fragment_name_opt ON
|
2395
|
-
#line
|
2396
|
-
|
2406
|
+
case 104: /* fragment_definition: FRAGMENT fragment_name_opt ON NamedTypeForCondition directives_list_opt selection_set */
|
2407
|
+
#line 444 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2408
|
+
{
|
2397
2409
|
yyval = MAKE_AST_NODE(FragmentDefinition, 6,
|
2398
2410
|
rb_ary_entry(yyvsp[-5], 1),
|
2399
2411
|
rb_ary_entry(yyvsp[-5], 2),
|
@@ -2403,29 +2415,29 @@ yyreduce:
|
|
2403
2415
|
yyvsp[0]
|
2404
2416
|
);
|
2405
2417
|
}
|
2406
|
-
#line
|
2418
|
+
#line 2419 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2407
2419
|
break;
|
2408
2420
|
|
2409
2421
|
case 105: /* fragment_name_opt: %empty */
|
2410
|
-
#line
|
2422
|
+
#line 456 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2411
2423
|
{ yyval = Qnil; }
|
2412
|
-
#line
|
2424
|
+
#line 2425 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2413
2425
|
break;
|
2414
2426
|
|
2415
2427
|
case 106: /* fragment_name_opt: name_without_on */
|
2416
|
-
#line
|
2428
|
+
#line 457 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2417
2429
|
{ yyval = rb_ary_entry(yyvsp[0], 3); }
|
2418
|
-
#line
|
2430
|
+
#line 2431 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2419
2431
|
break;
|
2420
2432
|
|
2421
2433
|
case 108: /* type: nullable_type BANG */
|
2422
|
-
#line
|
2434
|
+
#line 461 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2423
2435
|
{ yyval = MAKE_AST_NODE(NonNullType, 3, rb_funcall(yyvsp[-1], rb_intern("line"), 0), rb_funcall(yyvsp[-1], rb_intern("col"), 0), yyvsp[-1]); }
|
2424
|
-
#line
|
2436
|
+
#line 2437 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2425
2437
|
break;
|
2426
2438
|
|
2427
2439
|
case 109: /* nullable_type: name */
|
2428
|
-
#line
|
2440
|
+
#line 464 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2429
2441
|
{
|
2430
2442
|
yyval = MAKE_AST_NODE(TypeName, 3,
|
2431
2443
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2433,11 +2445,11 @@ yyreduce:
|
|
2433
2445
|
rb_ary_entry(yyvsp[0], 3)
|
2434
2446
|
);
|
2435
2447
|
}
|
2436
|
-
#line
|
2448
|
+
#line 2449 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2437
2449
|
break;
|
2438
2450
|
|
2439
2451
|
case 110: /* nullable_type: LBRACKET type RBRACKET */
|
2440
|
-
#line
|
2452
|
+
#line 471 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2441
2453
|
{
|
2442
2454
|
yyval = MAKE_AST_NODE(ListType, 3,
|
2443
2455
|
rb_funcall(yyvsp[-1], rb_intern("line"), 0),
|
@@ -2445,11 +2457,11 @@ yyreduce:
|
|
2445
2457
|
yyvsp[-1]
|
2446
2458
|
);
|
2447
2459
|
}
|
2448
|
-
#line
|
2460
|
+
#line 2461 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2449
2461
|
break;
|
2450
2462
|
|
2451
2463
|
case 114: /* schema_definition: SCHEMA directives_list_opt operation_type_definition_list_opt */
|
2452
|
-
#line
|
2464
|
+
#line 485 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2453
2465
|
{
|
2454
2466
|
yyval = MAKE_AST_NODE(SchemaDefinition, 6,
|
2455
2467
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2461,54 +2473,54 @@ yyreduce:
|
|
2461
2473
|
yyvsp[-1]
|
2462
2474
|
);
|
2463
2475
|
}
|
2464
|
-
#line
|
2476
|
+
#line 2477 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2465
2477
|
break;
|
2466
2478
|
|
2467
2479
|
case 115: /* operation_type_definition_list_opt: %empty */
|
2468
|
-
#line
|
2480
|
+
#line 498 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2469
2481
|
{ yyval = rb_hash_new(); }
|
2470
|
-
#line
|
2482
|
+
#line 2483 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2471
2483
|
break;
|
2472
2484
|
|
2473
2485
|
case 116: /* operation_type_definition_list_opt: LCURLY operation_type_definition_list RCURLY */
|
2474
|
-
#line
|
2486
|
+
#line 499 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2475
2487
|
{ yyval = yyvsp[-1]; }
|
2476
|
-
#line
|
2488
|
+
#line 2489 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2477
2489
|
break;
|
2478
2490
|
|
2479
2491
|
case 117: /* operation_type_definition_list: operation_type_definition */
|
2480
|
-
#line
|
2492
|
+
#line 502 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2481
2493
|
{
|
2482
2494
|
yyval = rb_hash_new();
|
2483
2495
|
rb_hash_aset(yyval, rb_ary_entry(yyvsp[0], 0), rb_ary_entry(yyvsp[0], 1));
|
2484
2496
|
}
|
2485
|
-
#line
|
2497
|
+
#line 2498 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2486
2498
|
break;
|
2487
2499
|
|
2488
2500
|
case 118: /* operation_type_definition_list: operation_type_definition_list operation_type_definition */
|
2489
|
-
#line
|
2501
|
+
#line 506 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2490
2502
|
{
|
2491
2503
|
rb_hash_aset(yyval, rb_ary_entry(yyvsp[0], 0), rb_ary_entry(yyvsp[0], 1));
|
2492
2504
|
}
|
2493
|
-
#line
|
2505
|
+
#line 2506 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2494
2506
|
break;
|
2495
2507
|
|
2496
2508
|
case 119: /* operation_type_definition: operation_type COLON name */
|
2497
|
-
#line
|
2509
|
+
#line 511 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2498
2510
|
{
|
2499
2511
|
yyval = rb_ary_new_from_args(2, rb_ary_entry(yyvsp[-2], 3), rb_ary_entry(yyvsp[0], 3));
|
2500
2512
|
}
|
2501
|
-
#line
|
2513
|
+
#line 2514 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2502
2514
|
break;
|
2503
2515
|
|
2504
2516
|
case 127: /* description_opt: %empty */
|
2505
|
-
#line
|
2517
|
+
#line 526 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2506
2518
|
{ yyval = Qnil; }
|
2507
|
-
#line
|
2519
|
+
#line 2520 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2508
2520
|
break;
|
2509
2521
|
|
2510
2522
|
case 129: /* scalar_type_definition: description_opt SCALAR name directives_list_opt */
|
2511
|
-
#line
|
2523
|
+
#line 530 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2512
2524
|
{
|
2513
2525
|
yyval = MAKE_AST_NODE(ScalarTypeDefinition, 5,
|
2514
2526
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2519,11 +2531,11 @@ yyreduce:
|
|
2519
2531
|
yyvsp[0]
|
2520
2532
|
);
|
2521
2533
|
}
|
2522
|
-
#line
|
2534
|
+
#line 2535 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2523
2535
|
break;
|
2524
2536
|
|
2525
2537
|
case 130: /* object_type_definition: description_opt TYPE_LITERAL name implements_opt directives_list_opt field_definition_list_opt */
|
2526
|
-
#line
|
2538
|
+
#line 542 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2527
2539
|
{
|
2528
2540
|
yyval = MAKE_AST_NODE(ObjectTypeDefinition, 7,
|
2529
2541
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2536,35 +2548,35 @@ yyreduce:
|
|
2536
2548
|
yyvsp[0]
|
2537
2549
|
);
|
2538
2550
|
}
|
2539
|
-
#line
|
2551
|
+
#line 2552 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2540
2552
|
break;
|
2541
2553
|
|
2542
2554
|
case 131: /* implements_opt: %empty */
|
2543
|
-
#line
|
2555
|
+
#line 556 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2544
2556
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2545
|
-
#line
|
2557
|
+
#line 2558 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2546
2558
|
break;
|
2547
2559
|
|
2548
2560
|
case 132: /* implements_opt: IMPLEMENTS AMP interfaces_list */
|
2549
|
-
#line
|
2561
|
+
#line 557 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2550
2562
|
{ yyval = yyvsp[0]; }
|
2551
|
-
#line
|
2563
|
+
#line 2564 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2552
2564
|
break;
|
2553
2565
|
|
2554
2566
|
case 133: /* implements_opt: IMPLEMENTS interfaces_list */
|
2555
|
-
#line
|
2567
|
+
#line 558 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2556
2568
|
{ yyval = yyvsp[0]; }
|
2557
|
-
#line
|
2569
|
+
#line 2570 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2558
2570
|
break;
|
2559
2571
|
|
2560
2572
|
case 134: /* implements_opt: IMPLEMENTS legacy_interfaces_list */
|
2561
|
-
#line
|
2573
|
+
#line 559 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2562
2574
|
{ yyval = yyvsp[0]; }
|
2563
|
-
#line
|
2575
|
+
#line 2576 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2564
2576
|
break;
|
2565
2577
|
|
2566
2578
|
case 135: /* interfaces_list: name */
|
2567
|
-
#line
|
2579
|
+
#line 562 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2568
2580
|
{
|
2569
2581
|
VALUE new_name = MAKE_AST_NODE(TypeName, 3,
|
2570
2582
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2573,20 +2585,20 @@ yyreduce:
|
|
2573
2585
|
);
|
2574
2586
|
yyval = rb_ary_new_from_args(1, new_name);
|
2575
2587
|
}
|
2576
|
-
#line
|
2588
|
+
#line 2589 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2577
2589
|
break;
|
2578
2590
|
|
2579
2591
|
case 136: /* interfaces_list: interfaces_list AMP name */
|
2580
|
-
#line
|
2592
|
+
#line 570 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2581
2593
|
{
|
2582
2594
|
VALUE new_name = MAKE_AST_NODE(TypeName, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3));
|
2583
2595
|
rb_ary_push(yyval, new_name);
|
2584
2596
|
}
|
2585
|
-
#line
|
2597
|
+
#line 2598 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2586
2598
|
break;
|
2587
2599
|
|
2588
2600
|
case 137: /* legacy_interfaces_list: name */
|
2589
|
-
#line
|
2601
|
+
#line 576 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2590
2602
|
{
|
2591
2603
|
VALUE new_name = MAKE_AST_NODE(TypeName, 3,
|
2592
2604
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2595,19 +2607,19 @@ yyreduce:
|
|
2595
2607
|
);
|
2596
2608
|
yyval = rb_ary_new_from_args(1, new_name);
|
2597
2609
|
}
|
2598
|
-
#line
|
2610
|
+
#line 2611 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2599
2611
|
break;
|
2600
2612
|
|
2601
2613
|
case 138: /* legacy_interfaces_list: legacy_interfaces_list name */
|
2602
|
-
#line
|
2614
|
+
#line 584 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2603
2615
|
{
|
2604
2616
|
rb_ary_push(yyval, MAKE_AST_NODE(TypeName, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3)));
|
2605
2617
|
}
|
2606
|
-
#line
|
2618
|
+
#line 2619 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2607
2619
|
break;
|
2608
2620
|
|
2609
2621
|
case 139: /* input_value_definition: description_opt name COLON type default_value_opt directives_list_opt */
|
2610
|
-
#line
|
2622
|
+
#line 589 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2611
2623
|
{
|
2612
2624
|
yyval = MAKE_AST_NODE(InputValueDefinition, 7,
|
2613
2625
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2620,35 +2632,35 @@ yyreduce:
|
|
2620
2632
|
yyvsp[0]
|
2621
2633
|
);
|
2622
2634
|
}
|
2623
|
-
#line
|
2635
|
+
#line 2636 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2624
2636
|
break;
|
2625
2637
|
|
2626
2638
|
case 140: /* input_value_definition_list: input_value_definition */
|
2627
|
-
#line
|
2639
|
+
#line 603 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2628
2640
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2629
|
-
#line
|
2641
|
+
#line 2642 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2630
2642
|
break;
|
2631
2643
|
|
2632
2644
|
case 141: /* input_value_definition_list: input_value_definition_list input_value_definition */
|
2633
|
-
#line
|
2645
|
+
#line 604 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2634
2646
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2635
|
-
#line
|
2647
|
+
#line 2648 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2636
2648
|
break;
|
2637
2649
|
|
2638
2650
|
case 142: /* arguments_definitions_opt: %empty */
|
2639
|
-
#line
|
2651
|
+
#line 607 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2640
2652
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2641
|
-
#line
|
2653
|
+
#line 2654 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2642
2654
|
break;
|
2643
2655
|
|
2644
2656
|
case 143: /* arguments_definitions_opt: LPAREN input_value_definition_list RPAREN */
|
2645
|
-
#line
|
2657
|
+
#line 608 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2646
2658
|
{ yyval = yyvsp[-1]; }
|
2647
|
-
#line
|
2659
|
+
#line 2660 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2648
2660
|
break;
|
2649
2661
|
|
2650
2662
|
case 144: /* field_definition: description_opt name arguments_definitions_opt COLON type directives_list_opt */
|
2651
|
-
#line
|
2663
|
+
#line 611 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2652
2664
|
{
|
2653
2665
|
yyval = MAKE_AST_NODE(FieldDefinition, 7,
|
2654
2666
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2661,41 +2673,41 @@ yyreduce:
|
|
2661
2673
|
yyvsp[0]
|
2662
2674
|
);
|
2663
2675
|
}
|
2664
|
-
#line
|
2676
|
+
#line 2677 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2665
2677
|
break;
|
2666
2678
|
|
2667
2679
|
case 145: /* field_definition_list_opt: %empty */
|
2668
|
-
#line
|
2680
|
+
#line 625 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2669
2681
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2670
|
-
#line
|
2682
|
+
#line 2683 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2671
2683
|
break;
|
2672
2684
|
|
2673
2685
|
case 146: /* field_definition_list_opt: LCURLY field_definition_list RCURLY */
|
2674
|
-
#line
|
2686
|
+
#line 626 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2675
2687
|
{ yyval = yyvsp[-1]; }
|
2676
|
-
#line
|
2688
|
+
#line 2689 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2677
2689
|
break;
|
2678
2690
|
|
2679
2691
|
case 147: /* field_definition_list: %empty */
|
2680
|
-
#line
|
2692
|
+
#line 629 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2681
2693
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2682
|
-
#line
|
2694
|
+
#line 2695 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2683
2695
|
break;
|
2684
2696
|
|
2685
2697
|
case 148: /* field_definition_list: field_definition */
|
2686
|
-
#line
|
2698
|
+
#line 630 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2687
2699
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2688
|
-
#line
|
2700
|
+
#line 2701 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2689
2701
|
break;
|
2690
2702
|
|
2691
2703
|
case 149: /* field_definition_list: field_definition_list field_definition */
|
2692
|
-
#line
|
2704
|
+
#line 631 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2693
2705
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2694
|
-
#line
|
2706
|
+
#line 2707 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2695
2707
|
break;
|
2696
2708
|
|
2697
2709
|
case 150: /* interface_type_definition: description_opt INTERFACE name implements_opt directives_list_opt field_definition_list_opt */
|
2698
|
-
#line
|
2710
|
+
#line 634 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2699
2711
|
{
|
2700
2712
|
yyval = MAKE_AST_NODE(InterfaceTypeDefinition, 7,
|
2701
2713
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2708,23 +2720,23 @@ yyreduce:
|
|
2708
2720
|
yyvsp[0]
|
2709
2721
|
);
|
2710
2722
|
}
|
2711
|
-
#line
|
2723
|
+
#line 2724 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2712
2724
|
break;
|
2713
2725
|
|
2714
2726
|
case 151: /* pipe_opt: %empty */
|
2715
|
-
#line
|
2727
|
+
#line 648 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2716
2728
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2717
|
-
#line
|
2729
|
+
#line 2730 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2718
2730
|
break;
|
2719
2731
|
|
2720
2732
|
case 152: /* pipe_opt: PIPE */
|
2721
|
-
#line
|
2733
|
+
#line 649 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2722
2734
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2723
|
-
#line
|
2735
|
+
#line 2736 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2724
2736
|
break;
|
2725
2737
|
|
2726
2738
|
case 153: /* union_members: pipe_opt name */
|
2727
|
-
#line
|
2739
|
+
#line 652 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2728
2740
|
{
|
2729
2741
|
VALUE new_member = MAKE_AST_NODE(TypeName, 3,
|
2730
2742
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2733,19 +2745,19 @@ yyreduce:
|
|
2733
2745
|
);
|
2734
2746
|
yyval = rb_ary_new_from_args(1, new_member);
|
2735
2747
|
}
|
2736
|
-
#line
|
2748
|
+
#line 2749 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2737
2749
|
break;
|
2738
2750
|
|
2739
2751
|
case 154: /* union_members: union_members PIPE name */
|
2740
|
-
#line
|
2752
|
+
#line 660 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2741
2753
|
{
|
2742
2754
|
rb_ary_push(yyval, MAKE_AST_NODE(TypeName, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3)));
|
2743
2755
|
}
|
2744
|
-
#line
|
2756
|
+
#line 2757 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2745
2757
|
break;
|
2746
2758
|
|
2747
2759
|
case 155: /* union_type_definition: description_opt UNION name directives_list_opt EQUALS union_members */
|
2748
|
-
#line
|
2760
|
+
#line 665 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2749
2761
|
{
|
2750
2762
|
yyval = MAKE_AST_NODE(UnionTypeDefinition, 6,
|
2751
2763
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2757,11 +2769,11 @@ yyreduce:
|
|
2757
2769
|
yyvsp[-2]
|
2758
2770
|
);
|
2759
2771
|
}
|
2760
|
-
#line
|
2772
|
+
#line 2773 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2761
2773
|
break;
|
2762
2774
|
|
2763
2775
|
case 156: /* enum_type_definition: description_opt ENUM name directives_list_opt LCURLY enum_value_definitions RCURLY */
|
2764
|
-
#line
|
2776
|
+
#line 678 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2765
2777
|
{
|
2766
2778
|
yyval = MAKE_AST_NODE(EnumTypeDefinition, 6,
|
2767
2779
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2773,11 +2785,11 @@ yyreduce:
|
|
2773
2785
|
yyvsp[-1]
|
2774
2786
|
);
|
2775
2787
|
}
|
2776
|
-
#line
|
2788
|
+
#line 2789 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2777
2789
|
break;
|
2778
2790
|
|
2779
2791
|
case 157: /* enum_value_definition: description_opt enum_name directives_list_opt */
|
2780
|
-
#line
|
2792
|
+
#line 691 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2781
2793
|
{
|
2782
2794
|
yyval = MAKE_AST_NODE(EnumValueDefinition, 5,
|
2783
2795
|
rb_ary_entry(yyvsp[-1], 1),
|
@@ -2788,23 +2800,23 @@ yyreduce:
|
|
2788
2800
|
yyvsp[0]
|
2789
2801
|
);
|
2790
2802
|
}
|
2791
|
-
#line
|
2803
|
+
#line 2804 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2792
2804
|
break;
|
2793
2805
|
|
2794
2806
|
case 158: /* enum_value_definitions: enum_value_definition */
|
2795
|
-
#line
|
2807
|
+
#line 703 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2796
2808
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2797
|
-
#line
|
2809
|
+
#line 2810 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2798
2810
|
break;
|
2799
2811
|
|
2800
2812
|
case 159: /* enum_value_definitions: enum_value_definitions enum_value_definition */
|
2801
|
-
#line
|
2813
|
+
#line 704 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2802
2814
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2803
|
-
#line
|
2815
|
+
#line 2816 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2804
2816
|
break;
|
2805
2817
|
|
2806
2818
|
case 160: /* input_object_type_definition: description_opt INPUT name directives_list_opt LCURLY input_value_definition_list RCURLY */
|
2807
|
-
#line
|
2819
|
+
#line 707 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2808
2820
|
{
|
2809
2821
|
yyval = MAKE_AST_NODE(InputObjectTypeDefinition, 6,
|
2810
2822
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2816,11 +2828,11 @@ yyreduce:
|
|
2816
2828
|
yyvsp[-1]
|
2817
2829
|
);
|
2818
2830
|
}
|
2819
|
-
#line
|
2831
|
+
#line 2832 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2820
2832
|
break;
|
2821
2833
|
|
2822
2834
|
case 161: /* directive_definition: description_opt DIRECTIVE DIR_SIGN name arguments_definitions_opt directive_repeatable_opt ON directive_locations */
|
2823
|
-
#line
|
2835
|
+
#line 720 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2824
2836
|
{
|
2825
2837
|
yyval = MAKE_AST_NODE(DirectiveDefinition, 7,
|
2826
2838
|
rb_ary_entry(yyvsp[-6], 1),
|
@@ -2833,35 +2845,35 @@ yyreduce:
|
|
2833
2845
|
yyvsp[0]
|
2834
2846
|
);
|
2835
2847
|
}
|
2836
|
-
#line
|
2848
|
+
#line 2849 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2837
2849
|
break;
|
2838
2850
|
|
2839
2851
|
case 162: /* directive_repeatable_opt: %empty */
|
2840
|
-
#line
|
2852
|
+
#line 734 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2841
2853
|
{ yyval = Qnil; }
|
2842
|
-
#line
|
2854
|
+
#line 2855 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2843
2855
|
break;
|
2844
2856
|
|
2845
2857
|
case 163: /* directive_repeatable_opt: REPEATABLE */
|
2846
|
-
#line
|
2858
|
+
#line 735 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2847
2859
|
{ yyval = Qtrue; }
|
2848
|
-
#line
|
2860
|
+
#line 2861 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2849
2861
|
break;
|
2850
2862
|
|
2851
2863
|
case 164: /* directive_locations: name */
|
2852
|
-
#line
|
2864
|
+
#line 738 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2853
2865
|
{ yyval = rb_ary_new_from_args(1, MAKE_AST_NODE(DirectiveLocation, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3))); }
|
2854
|
-
#line
|
2866
|
+
#line 2867 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2855
2867
|
break;
|
2856
2868
|
|
2857
2869
|
case 165: /* directive_locations: directive_locations PIPE name */
|
2858
|
-
#line
|
2870
|
+
#line 739 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2859
2871
|
{ rb_ary_push(yyval, MAKE_AST_NODE(DirectiveLocation, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3))); }
|
2860
|
-
#line
|
2872
|
+
#line 2873 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2861
2873
|
break;
|
2862
2874
|
|
2863
2875
|
case 168: /* schema_extension: EXTEND SCHEMA directives_list_opt LCURLY operation_type_definition_list RCURLY */
|
2864
|
-
#line
|
2876
|
+
#line 747 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2865
2877
|
{
|
2866
2878
|
yyval = MAKE_AST_NODE(SchemaExtension, 6,
|
2867
2879
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2873,11 +2885,11 @@ yyreduce:
|
|
2873
2885
|
yyvsp[-3]
|
2874
2886
|
);
|
2875
2887
|
}
|
2876
|
-
#line
|
2888
|
+
#line 2889 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2877
2889
|
break;
|
2878
2890
|
|
2879
2891
|
case 169: /* schema_extension: EXTEND SCHEMA directives_list */
|
2880
|
-
#line
|
2892
|
+
#line 758 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2881
2893
|
{
|
2882
2894
|
yyval = MAKE_AST_NODE(SchemaExtension, 6,
|
2883
2895
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2888,11 +2900,11 @@ yyreduce:
|
|
2888
2900
|
yyvsp[0]
|
2889
2901
|
);
|
2890
2902
|
}
|
2891
|
-
#line
|
2903
|
+
#line 2904 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2892
2904
|
break;
|
2893
2905
|
|
2894
2906
|
case 176: /* scalar_type_extension: EXTEND SCALAR name directives_list */
|
2895
|
-
#line
|
2907
|
+
#line 777 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2896
2908
|
{
|
2897
2909
|
yyval = MAKE_AST_NODE(ScalarTypeExtension, 4,
|
2898
2910
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2901,11 +2913,11 @@ yyreduce:
|
|
2901
2913
|
yyvsp[0]
|
2902
2914
|
);
|
2903
2915
|
}
|
2904
|
-
#line
|
2916
|
+
#line 2917 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2905
2917
|
break;
|
2906
2918
|
|
2907
2919
|
case 177: /* object_type_extension: EXTEND TYPE_LITERAL name implements_opt directives_list_opt field_definition_list_opt */
|
2908
|
-
#line
|
2920
|
+
#line 787 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2909
2921
|
{
|
2910
2922
|
yyval = MAKE_AST_NODE(ObjectTypeExtension, 6,
|
2911
2923
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2916,11 +2928,11 @@ yyreduce:
|
|
2916
2928
|
yyvsp[0]
|
2917
2929
|
);
|
2918
2930
|
}
|
2919
|
-
#line
|
2931
|
+
#line 2932 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2920
2932
|
break;
|
2921
2933
|
|
2922
2934
|
case 178: /* interface_type_extension: EXTEND INTERFACE name implements_opt directives_list_opt field_definition_list_opt */
|
2923
|
-
#line
|
2935
|
+
#line 799 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2924
2936
|
{
|
2925
2937
|
yyval = MAKE_AST_NODE(InterfaceTypeExtension, 6,
|
2926
2938
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2931,11 +2943,11 @@ yyreduce:
|
|
2931
2943
|
yyvsp[0]
|
2932
2944
|
);
|
2933
2945
|
}
|
2934
|
-
#line
|
2946
|
+
#line 2947 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2935
2947
|
break;
|
2936
2948
|
|
2937
2949
|
case 179: /* union_type_extension: EXTEND UNION name directives_list_opt EQUALS union_members */
|
2938
|
-
#line
|
2950
|
+
#line 811 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2939
2951
|
{
|
2940
2952
|
yyval = MAKE_AST_NODE(UnionTypeExtension, 5,
|
2941
2953
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2945,11 +2957,11 @@ yyreduce:
|
|
2945
2957
|
yyvsp[-2]
|
2946
2958
|
);
|
2947
2959
|
}
|
2948
|
-
#line
|
2960
|
+
#line 2961 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2949
2961
|
break;
|
2950
2962
|
|
2951
2963
|
case 180: /* union_type_extension: EXTEND UNION name directives_list */
|
2952
|
-
#line
|
2964
|
+
#line 820 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2953
2965
|
{
|
2954
2966
|
yyval = MAKE_AST_NODE(UnionTypeExtension, 5,
|
2955
2967
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2959,11 +2971,11 @@ yyreduce:
|
|
2959
2971
|
yyvsp[0]
|
2960
2972
|
);
|
2961
2973
|
}
|
2962
|
-
#line
|
2974
|
+
#line 2975 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2963
2975
|
break;
|
2964
2976
|
|
2965
2977
|
case 181: /* enum_type_extension: EXTEND ENUM name directives_list_opt LCURLY enum_value_definitions RCURLY */
|
2966
|
-
#line
|
2978
|
+
#line 831 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2967
2979
|
{
|
2968
2980
|
yyval = MAKE_AST_NODE(EnumTypeExtension, 5,
|
2969
2981
|
rb_ary_entry(yyvsp[-6], 1),
|
@@ -2973,11 +2985,11 @@ yyreduce:
|
|
2973
2985
|
yyvsp[-1]
|
2974
2986
|
);
|
2975
2987
|
}
|
2976
|
-
#line
|
2988
|
+
#line 2989 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2977
2989
|
break;
|
2978
2990
|
|
2979
2991
|
case 182: /* enum_type_extension: EXTEND ENUM name directives_list */
|
2980
|
-
#line
|
2992
|
+
#line 840 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2981
2993
|
{
|
2982
2994
|
yyval = MAKE_AST_NODE(EnumTypeExtension, 5,
|
2983
2995
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2987,11 +2999,11 @@ yyreduce:
|
|
2987
2999
|
GraphQL_Language_Nodes_NONE
|
2988
3000
|
);
|
2989
3001
|
}
|
2990
|
-
#line
|
3002
|
+
#line 3003 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2991
3003
|
break;
|
2992
3004
|
|
2993
3005
|
case 183: /* input_object_type_extension: EXTEND INPUT name directives_list_opt LCURLY input_value_definition_list RCURLY */
|
2994
|
-
#line
|
3006
|
+
#line 851 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2995
3007
|
{
|
2996
3008
|
yyval = MAKE_AST_NODE(InputObjectTypeExtension, 5,
|
2997
3009
|
rb_ary_entry(yyvsp[-6], 1),
|
@@ -3001,11 +3013,11 @@ yyreduce:
|
|
3001
3013
|
yyvsp[-1]
|
3002
3014
|
);
|
3003
3015
|
}
|
3004
|
-
#line
|
3016
|
+
#line 3017 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
3005
3017
|
break;
|
3006
3018
|
|
3007
3019
|
case 184: /* input_object_type_extension: EXTEND INPUT name directives_list */
|
3008
|
-
#line
|
3020
|
+
#line 860 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
3009
3021
|
{
|
3010
3022
|
yyval = MAKE_AST_NODE(InputObjectTypeExtension, 5,
|
3011
3023
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -3015,11 +3027,27 @@ yyreduce:
|
|
3015
3027
|
GraphQL_Language_Nodes_NONE
|
3016
3028
|
);
|
3017
3029
|
}
|
3018
|
-
#line
|
3030
|
+
#line 3031 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
3031
|
+
break;
|
3032
|
+
|
3033
|
+
case 185: /* NamedTypeForCondition: name */
|
3034
|
+
#line 872 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
3035
|
+
{
|
3036
|
+
/* This action creates a TypeName AST node.
|
3037
|
+
$1 (yyvsp[0] in C) refers to the semantic value of 'name'.
|
3038
|
+
The MAKE_AST_NODE macro is used, consistent with other rules.
|
3039
|
+
'name' (represented by $1) provides an array: [filename, line, col, name_string] */
|
3040
|
+
yyval = MAKE_AST_NODE(TypeName, 3,
|
3041
|
+
rb_ary_entry(yyvsp[0], 1), /* line from name token */
|
3042
|
+
rb_ary_entry(yyvsp[0], 2), /* col from name token */
|
3043
|
+
rb_ary_entry(yyvsp[0], 3) /* name string itself */
|
3044
|
+
);
|
3045
|
+
}
|
3046
|
+
#line 3047 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
3019
3047
|
break;
|
3020
3048
|
|
3021
3049
|
|
3022
|
-
#line
|
3050
|
+
#line 3051 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
3023
3051
|
|
3024
3052
|
default: break;
|
3025
3053
|
}
|
@@ -3243,7 +3271,7 @@ yyreturnlab:
|
|
3243
3271
|
return yyresult;
|
3244
3272
|
}
|
3245
3273
|
|
3246
|
-
#line
|
3274
|
+
#line 885 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
3247
3275
|
|
3248
3276
|
|
3249
3277
|
// Custom functions
|