graphql-c_parser 1.1.3 → 1.1.4

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.
@@ -72,6 +72,8 @@
72
72
  // C Declarations
73
73
  #include <ruby.h>
74
74
  #define YYSTYPE VALUE
75
+ #define YYSTACK_USE_ALLOCA 1
76
+
75
77
  int yylex(YYSTYPE *, VALUE, VALUE);
76
78
  void yyerror(VALUE, VALUE, const char*);
77
79
 
@@ -120,7 +122,7 @@ SETUP_NODE_CLASS_VARIABLE(EnumTypeExtension)
120
122
  SETUP_NODE_CLASS_VARIABLE(InputObjectTypeExtension)
121
123
  SETUP_NODE_CLASS_VARIABLE(SchemaExtension)
122
124
 
123
- #line 124 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
125
+ #line 126 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
124
126
 
125
127
  # ifndef YY_CAST
126
128
  # ifdef __cplusplus
@@ -776,25 +778,25 @@ static const yytype_int8 yytranslate[] =
776
778
  /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
777
779
  static const yytype_int16 yyrline[] =
778
780
  {
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
781
+ 0, 107, 107, 109, 123, 124, 127, 128, 129, 132,
782
+ 133, 136, 147, 158, 171, 172, 173, 176, 177, 180,
783
+ 181, 184, 185, 188, 200, 201, 204, 205, 208, 209,
784
+ 210, 213, 216, 217, 220, 231, 244, 245, 248, 249,
785
+ 252, 262, 263, 264, 265, 266, 267, 268, 269, 270,
786
+ 273, 274, 275, 277, 285, 294, 295, 298, 299, 302,
787
+ 303, 304, 305, 307, 316, 325, 326, 329, 330, 333,
788
+ 344, 353, 354, 357, 358, 361, 372, 373, 376, 377,
789
+ 379, 389, 390, 393, 394, 395, 396, 397, 398, 399,
790
+ 400, 401, 402, 403, 404, 407, 408, 409, 410, 411,
791
+ 412, 416, 426, 435, 446, 458, 459, 462, 463, 466,
792
+ 473, 482, 483, 484, 487, 500, 501, 504, 508, 513,
793
+ 518, 519, 520, 521, 522, 523, 525, 528, 529, 532,
794
+ 544, 558, 559, 560, 561, 564, 572, 578, 586, 591,
795
+ 605, 606, 609, 610, 613, 627, 628, 631, 632, 633,
796
+ 636, 650, 651, 654, 662, 667, 680, 693, 705, 706,
797
+ 709, 722, 736, 737, 740, 741, 745, 746, 749, 760,
798
+ 772, 773, 774, 775, 776, 777, 779, 789, 801, 813,
799
+ 822, 833, 842, 853, 862, 873
798
800
  };
799
801
  #endif
800
802
 
@@ -1923,13 +1925,13 @@ yyreduce:
1923
1925
  switch (yyn)
1924
1926
  {
1925
1927
  case 2: /* start: document */
1926
- #line 105 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1928
+ #line 107 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1927
1929
  { rb_ivar_set(parser, rb_intern("@result"), yyvsp[0]); }
1928
- #line 1929 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1930
+ #line 1931 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1929
1931
  break;
1930
1932
 
1931
1933
  case 3: /* document: definitions_list */
1932
- #line 107 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1934
+ #line 109 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1933
1935
  {
1934
1936
  VALUE position_source = rb_ary_entry(yyvsp[0], 0);
1935
1937
  VALUE line, col;
@@ -1942,23 +1944,23 @@ yyreduce:
1942
1944
  }
1943
1945
  yyval = MAKE_AST_NODE(Document, 3, line, col, yyvsp[0]);
1944
1946
  }
1945
- #line 1946 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1947
+ #line 1948 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1946
1948
  break;
1947
1949
 
1948
1950
  case 4: /* definitions_list: definition */
1949
- #line 121 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1951
+ #line 123 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1950
1952
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
1951
- #line 1952 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1953
+ #line 1954 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1952
1954
  break;
1953
1955
 
1954
1956
  case 5: /* definitions_list: definitions_list definition */
1955
- #line 122 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1957
+ #line 124 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1956
1958
  { rb_ary_push(yyval, yyvsp[0]); }
1957
- #line 1958 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1959
+ #line 1960 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1958
1960
  break;
1959
1961
 
1960
1962
  case 11: /* operation_definition: operation_type operation_name_opt variable_definitions_opt directives_list_opt selection_set */
1961
- #line 134 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1963
+ #line 136 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1962
1964
  {
1963
1965
  yyval = MAKE_AST_NODE(OperationDefinition, 7,
1964
1966
  rb_ary_entry(yyvsp[-4], 1),
@@ -1970,11 +1972,11 @@ yyreduce:
1970
1972
  yyvsp[0]
1971
1973
  );
1972
1974
  }
1973
- #line 1974 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1975
+ #line 1976 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1974
1976
  break;
1975
1977
 
1976
1978
  case 12: /* operation_definition: LCURLY selection_list RCURLY */
1977
- #line 145 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1979
+ #line 147 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1978
1980
  {
1979
1981
  yyval = MAKE_AST_NODE(OperationDefinition, 7,
1980
1982
  rb_ary_entry(yyvsp[-2], 1),
@@ -1986,11 +1988,11 @@ yyreduce:
1986
1988
  yyvsp[-1]
1987
1989
  );
1988
1990
  }
1989
- #line 1990 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1991
+ #line 1992 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
1990
1992
  break;
1991
1993
 
1992
1994
  case 13: /* operation_definition: LCURLY RCURLY */
1993
- #line 156 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1995
+ #line 158 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
1994
1996
  {
1995
1997
  yyval = MAKE_AST_NODE(OperationDefinition, 7,
1996
1998
  rb_ary_entry(yyvsp[-1], 1),
@@ -2002,41 +2004,41 @@ yyreduce:
2002
2004
  GraphQL_Language_Nodes_NONE
2003
2005
  );
2004
2006
  }
2005
- #line 2006 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2007
+ #line 2008 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2006
2008
  break;
2007
2009
 
2008
2010
  case 17: /* operation_name_opt: %empty */
2009
- #line 174 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2011
+ #line 176 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2010
2012
  { yyval = Qnil; }
2011
- #line 2012 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2013
+ #line 2014 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2012
2014
  break;
2013
2015
 
2014
2016
  case 19: /* variable_definitions_opt: %empty */
2015
- #line 178 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2017
+ #line 180 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2016
2018
  { yyval = GraphQL_Language_Nodes_NONE; }
2017
- #line 2018 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2019
+ #line 2020 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2018
2020
  break;
2019
2021
 
2020
2022
  case 20: /* variable_definitions_opt: LPAREN variable_definitions_list RPAREN */
2021
- #line 179 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2023
+ #line 181 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2022
2024
  { yyval = yyvsp[-1]; }
2023
- #line 2024 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2025
+ #line 2026 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2024
2026
  break;
2025
2027
 
2026
2028
  case 21: /* variable_definitions_list: variable_definition */
2027
- #line 182 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2029
+ #line 184 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2028
2030
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2029
- #line 2030 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2031
+ #line 2032 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2030
2032
  break;
2031
2033
 
2032
2034
  case 22: /* variable_definitions_list: variable_definitions_list variable_definition */
2033
- #line 183 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2035
+ #line 185 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2034
2036
  { rb_ary_push(yyval, yyvsp[0]); }
2035
- #line 2036 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2037
+ #line 2038 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2036
2038
  break;
2037
2039
 
2038
2040
  case 23: /* variable_definition: VAR_SIGN name COLON type default_value_opt directives_list_opt */
2039
- #line 186 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2041
+ #line 188 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2040
2042
  {
2041
2043
  yyval = MAKE_AST_NODE(VariableDefinition, 6,
2042
2044
  rb_ary_entry(yyvsp[-5], 1),
@@ -2047,47 +2049,47 @@ yyreduce:
2047
2049
  yyvsp[0]
2048
2050
  );
2049
2051
  }
2050
- #line 2051 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2052
+ #line 2053 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2051
2053
  break;
2052
2054
 
2053
2055
  case 24: /* default_value_opt: %empty */
2054
- #line 198 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2056
+ #line 200 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2055
2057
  { yyval = Qnil; }
2056
- #line 2057 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2058
+ #line 2059 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2057
2059
  break;
2058
2060
 
2059
2061
  case 25: /* default_value_opt: EQUALS literal_value */
2060
- #line 199 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2062
+ #line 201 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2061
2063
  { yyval = yyvsp[0]; }
2062
- #line 2063 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2064
+ #line 2065 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2063
2065
  break;
2064
2066
 
2065
2067
  case 26: /* selection_list: selection */
2066
- #line 202 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2068
+ #line 204 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2067
2069
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2068
- #line 2069 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2070
+ #line 2071 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2069
2071
  break;
2070
2072
 
2071
2073
  case 27: /* selection_list: selection_list selection */
2072
- #line 203 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2074
+ #line 205 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2073
2075
  { rb_ary_push(yyval, yyvsp[0]); }
2074
- #line 2075 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2076
+ #line 2077 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2075
2077
  break;
2076
2078
 
2077
2079
  case 31: /* selection_set: LCURLY selection_list RCURLY */
2078
- #line 211 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2080
+ #line 213 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2079
2081
  { yyval = yyvsp[-1]; }
2080
- #line 2081 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2082
+ #line 2083 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2081
2083
  break;
2082
2084
 
2083
2085
  case 32: /* selection_set_opt: %empty */
2084
- #line 214 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2086
+ #line 216 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2085
2087
  { yyval = rb_ary_new(); }
2086
- #line 2087 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2088
+ #line 2089 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2087
2089
  break;
2088
2090
 
2089
2091
  case 34: /* field: name COLON name arguments_opt directives_list_opt selection_set_opt */
2090
- #line 218 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2092
+ #line 220 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2091
2093
  {
2092
2094
  yyval = MAKE_AST_NODE(Field, 7,
2093
2095
  rb_ary_entry(yyvsp[-5], 1),
@@ -2099,11 +2101,11 @@ yyreduce:
2099
2101
  yyvsp[0] // subselections
2100
2102
  );
2101
2103
  }
2102
- #line 2103 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2104
+ #line 2105 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2103
2105
  break;
2104
2106
 
2105
2107
  case 35: /* field: name arguments_opt directives_list_opt selection_set_opt */
2106
- #line 229 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2108
+ #line 231 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2107
2109
  {
2108
2110
  yyval = MAKE_AST_NODE(Field, 7,
2109
2111
  rb_ary_entry(yyvsp[-3], 1),
@@ -2115,35 +2117,35 @@ yyreduce:
2115
2117
  yyvsp[0] // subselections
2116
2118
  );
2117
2119
  }
2118
- #line 2119 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2120
+ #line 2121 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2119
2121
  break;
2120
2122
 
2121
2123
  case 36: /* arguments_opt: %empty */
2122
- #line 242 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2124
+ #line 244 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2123
2125
  { yyval = GraphQL_Language_Nodes_NONE; }
2124
- #line 2125 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2126
+ #line 2127 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2125
2127
  break;
2126
2128
 
2127
2129
  case 37: /* arguments_opt: LPAREN arguments_list RPAREN */
2128
- #line 243 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2130
+ #line 245 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2129
2131
  { yyval = yyvsp[-1]; }
2130
- #line 2131 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2132
+ #line 2133 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2131
2133
  break;
2132
2134
 
2133
2135
  case 38: /* arguments_list: argument */
2134
- #line 246 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2136
+ #line 248 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2135
2137
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2136
- #line 2137 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2138
+ #line 2139 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2137
2139
  break;
2138
2140
 
2139
2141
  case 39: /* arguments_list: arguments_list argument */
2140
- #line 247 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2142
+ #line 249 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2141
2143
  { rb_ary_push(yyval, yyvsp[0]); }
2142
- #line 2143 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2144
+ #line 2145 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2143
2145
  break;
2144
2146
 
2145
2147
  case 40: /* argument: name COLON input_value */
2146
- #line 250 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2148
+ #line 252 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2147
2149
  {
2148
2150
  yyval = MAKE_AST_NODE(Argument, 4,
2149
2151
  rb_ary_entry(yyvsp[-2], 1),
@@ -2152,41 +2154,41 @@ yyreduce:
2152
2154
  yyvsp[0]
2153
2155
  );
2154
2156
  }
2155
- #line 2156 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2157
+ #line 2158 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2156
2158
  break;
2157
2159
 
2158
2160
  case 41: /* literal_value: FLOAT */
2159
- #line 260 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2161
+ #line 262 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2160
2162
  { yyval = rb_funcall(rb_ary_entry(yyvsp[0], 3), rb_intern("to_f"), 0); }
2161
- #line 2162 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2163
+ #line 2164 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2162
2164
  break;
2163
2165
 
2164
2166
  case 42: /* literal_value: INT */
2165
- #line 261 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2167
+ #line 263 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2166
2168
  { yyval = rb_funcall(rb_ary_entry(yyvsp[0], 3), rb_intern("to_i"), 0); }
2167
- #line 2168 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2169
+ #line 2170 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2168
2170
  break;
2169
2171
 
2170
2172
  case 43: /* literal_value: STRING */
2171
- #line 262 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2173
+ #line 264 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2172
2174
  { yyval = rb_ary_entry(yyvsp[0], 3); }
2173
- #line 2174 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2175
+ #line 2176 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2174
2176
  break;
2175
2177
 
2176
2178
  case 44: /* literal_value: TRUE_LITERAL */
2177
- #line 263 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2179
+ #line 265 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2178
2180
  { yyval = Qtrue; }
2179
- #line 2180 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2181
+ #line 2182 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2180
2182
  break;
2181
2183
 
2182
2184
  case 45: /* literal_value: FALSE_LITERAL */
2183
- #line 264 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2185
+ #line 266 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2184
2186
  { yyval = Qfalse; }
2185
- #line 2186 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2187
+ #line 2188 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2186
2188
  break;
2187
2189
 
2188
2190
  case 53: /* null_value: NULL_LITERAL */
2189
- #line 275 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2191
+ #line 277 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2190
2192
  {
2191
2193
  yyval = MAKE_AST_NODE(NullValue, 3,
2192
2194
  rb_ary_entry(yyvsp[0], 1),
@@ -2194,11 +2196,11 @@ yyreduce:
2194
2196
  rb_ary_entry(yyvsp[0], 3)
2195
2197
  );
2196
2198
  }
2197
- #line 2198 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2199
+ #line 2200 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2198
2200
  break;
2199
2201
 
2200
2202
  case 54: /* variable: VAR_SIGN name */
2201
- #line 283 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2203
+ #line 285 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2202
2204
  {
2203
2205
  yyval = MAKE_AST_NODE(VariableIdentifier, 3,
2204
2206
  rb_ary_entry(yyvsp[-1], 1),
@@ -2206,35 +2208,35 @@ yyreduce:
2206
2208
  rb_ary_entry(yyvsp[0], 3)
2207
2209
  );
2208
2210
  }
2209
- #line 2210 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2211
+ #line 2212 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2210
2212
  break;
2211
2213
 
2212
2214
  case 55: /* list_value: LBRACKET RBRACKET */
2213
- #line 292 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2215
+ #line 294 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2214
2216
  { yyval = GraphQL_Language_Nodes_NONE; }
2215
- #line 2216 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2217
+ #line 2218 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2216
2218
  break;
2217
2219
 
2218
2220
  case 56: /* list_value: LBRACKET list_value_list RBRACKET */
2219
- #line 293 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2221
+ #line 295 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2220
2222
  { yyval = yyvsp[-1]; }
2221
- #line 2222 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2223
+ #line 2224 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2222
2224
  break;
2223
2225
 
2224
2226
  case 57: /* list_value_list: input_value */
2225
- #line 296 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2227
+ #line 298 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2226
2228
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2227
- #line 2228 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2229
+ #line 2230 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2228
2230
  break;
2229
2231
 
2230
2232
  case 58: /* list_value_list: list_value_list input_value */
2231
- #line 297 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2233
+ #line 299 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2232
2234
  { rb_ary_push(yyval, yyvsp[0]); }
2233
- #line 2234 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2235
+ #line 2236 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2234
2236
  break;
2235
2237
 
2236
2238
  case 63: /* enum_value: enum_name */
2237
- #line 305 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2239
+ #line 307 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2238
2240
  {
2239
2241
  yyval = MAKE_AST_NODE(Enum, 3,
2240
2242
  rb_ary_entry(yyvsp[0], 1),
@@ -2242,11 +2244,11 @@ yyreduce:
2242
2244
  rb_ary_entry(yyvsp[0], 3)
2243
2245
  );
2244
2246
  }
2245
- #line 2246 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2247
+ #line 2248 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2246
2248
  break;
2247
2249
 
2248
2250
  case 64: /* object_value: LCURLY object_value_list_opt RCURLY */
2249
- #line 314 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2251
+ #line 316 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2250
2252
  {
2251
2253
  yyval = MAKE_AST_NODE(InputObject, 3,
2252
2254
  rb_ary_entry(yyvsp[-2], 1),
@@ -2254,29 +2256,29 @@ yyreduce:
2254
2256
  yyvsp[-1]
2255
2257
  );
2256
2258
  }
2257
- #line 2258 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2259
+ #line 2260 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2258
2260
  break;
2259
2261
 
2260
2262
  case 65: /* object_value_list_opt: %empty */
2261
- #line 323 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2263
+ #line 325 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2262
2264
  { yyval = GraphQL_Language_Nodes_NONE; }
2263
- #line 2264 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2265
+ #line 2266 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2264
2266
  break;
2265
2267
 
2266
2268
  case 67: /* object_value_list: object_value_field */
2267
- #line 327 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2269
+ #line 329 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2268
2270
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2269
- #line 2270 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2271
+ #line 2272 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2270
2272
  break;
2271
2273
 
2272
2274
  case 68: /* object_value_list: object_value_list object_value_field */
2273
- #line 328 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2275
+ #line 330 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2274
2276
  { rb_ary_push(yyval, yyvsp[0]); }
2275
- #line 2276 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2277
+ #line 2278 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2276
2278
  break;
2277
2279
 
2278
2280
  case 69: /* object_value_field: name COLON input_value */
2279
- #line 331 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2281
+ #line 333 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2280
2282
  {
2281
2283
  yyval = MAKE_AST_NODE(Argument, 4,
2282
2284
  rb_ary_entry(yyvsp[-2], 1),
@@ -2285,11 +2287,11 @@ yyreduce:
2285
2287
  yyvsp[0]
2286
2288
  );
2287
2289
  }
2288
- #line 2289 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2290
+ #line 2291 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2289
2291
  break;
2290
2292
 
2291
2293
  case 70: /* object_literal_value: LCURLY object_literal_value_list_opt RCURLY */
2292
- #line 342 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2294
+ #line 344 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2293
2295
  {
2294
2296
  yyval = MAKE_AST_NODE(InputObject, 3,
2295
2297
  rb_ary_entry(yyvsp[-2], 1),
@@ -2297,29 +2299,29 @@ yyreduce:
2297
2299
  yyvsp[-1]
2298
2300
  );
2299
2301
  }
2300
- #line 2301 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2302
+ #line 2303 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2301
2303
  break;
2302
2304
 
2303
2305
  case 71: /* object_literal_value_list_opt: %empty */
2304
- #line 351 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2306
+ #line 353 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2305
2307
  { yyval = GraphQL_Language_Nodes_NONE; }
2306
- #line 2307 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2308
+ #line 2309 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2307
2309
  break;
2308
2310
 
2309
2311
  case 73: /* object_literal_value_list: object_literal_value_field */
2310
- #line 355 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2312
+ #line 357 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2311
2313
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2312
- #line 2313 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2314
+ #line 2315 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2313
2315
  break;
2314
2316
 
2315
2317
  case 74: /* object_literal_value_list: object_literal_value_list object_literal_value_field */
2316
- #line 356 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2318
+ #line 358 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2317
2319
  { rb_ary_push(yyval, yyvsp[0]); }
2318
- #line 2319 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2320
+ #line 2321 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2319
2321
  break;
2320
2322
 
2321
2323
  case 75: /* object_literal_value_field: name COLON literal_value */
2322
- #line 359 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2324
+ #line 361 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2323
2325
  {
2324
2326
  yyval = MAKE_AST_NODE(Argument, 4,
2325
2327
  rb_ary_entry(yyvsp[-2], 1),
@@ -2328,29 +2330,29 @@ yyreduce:
2328
2330
  yyvsp[0]
2329
2331
  );
2330
2332
  }
2331
- #line 2332 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2333
+ #line 2334 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2332
2334
  break;
2333
2335
 
2334
2336
  case 76: /* directives_list_opt: %empty */
2335
- #line 370 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2337
+ #line 372 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2336
2338
  { yyval = GraphQL_Language_Nodes_NONE; }
2337
- #line 2338 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2339
+ #line 2340 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2338
2340
  break;
2339
2341
 
2340
2342
  case 78: /* directives_list: directive */
2341
- #line 374 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2343
+ #line 376 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2342
2344
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2343
- #line 2344 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2345
+ #line 2346 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2344
2346
  break;
2345
2347
 
2346
2348
  case 79: /* directives_list: directives_list directive */
2347
- #line 375 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2349
+ #line 377 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2348
2350
  { rb_ary_push(yyval, yyvsp[0]); }
2349
- #line 2350 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2351
+ #line 2352 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2350
2352
  break;
2351
2353
 
2352
2354
  case 80: /* directive: DIR_SIGN name arguments_opt */
2353
- #line 377 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2355
+ #line 379 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2354
2356
  {
2355
2357
  yyval = MAKE_AST_NODE(Directive, 4,
2356
2358
  rb_ary_entry(yyvsp[-2], 1),
@@ -2359,11 +2361,11 @@ yyreduce:
2359
2361
  yyvsp[0]
2360
2362
  );
2361
2363
  }
2362
- #line 2363 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2364
+ #line 2365 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2363
2365
  break;
2364
2366
 
2365
2367
  case 101: /* fragment_spread: ELLIPSIS name_without_on directives_list_opt */
2366
- #line 414 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2368
+ #line 416 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2367
2369
  {
2368
2370
  yyval = MAKE_AST_NODE(FragmentSpread, 4,
2369
2371
  rb_ary_entry(yyvsp[-2], 1),
@@ -2372,11 +2374,11 @@ yyreduce:
2372
2374
  yyvsp[0]
2373
2375
  );
2374
2376
  }
2375
- #line 2376 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2377
+ #line 2378 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2376
2378
  break;
2377
2379
 
2378
2380
  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"
2381
+ #line 426 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2380
2382
  {
2381
2383
  yyval = MAKE_AST_NODE(InlineFragment, 5,
2382
2384
  rb_ary_entry(yyvsp[-4], 1),
@@ -2386,11 +2388,11 @@ yyreduce:
2386
2388
  yyvsp[0]
2387
2389
  );
2388
2390
  }
2389
- #line 2390 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2391
+ #line 2392 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2390
2392
  break;
2391
2393
 
2392
2394
  case 103: /* inline_fragment: ELLIPSIS directives_list_opt selection_set */
2393
- #line 433 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2395
+ #line 435 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2394
2396
  {
2395
2397
  yyval = MAKE_AST_NODE(InlineFragment, 5,
2396
2398
  rb_ary_entry(yyvsp[-2], 1),
@@ -2400,11 +2402,11 @@ yyreduce:
2400
2402
  yyvsp[0]
2401
2403
  );
2402
2404
  }
2403
- #line 2404 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2405
+ #line 2406 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2404
2406
  break;
2405
2407
 
2406
2408
  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"
2409
+ #line 446 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2408
2410
  {
2409
2411
  yyval = MAKE_AST_NODE(FragmentDefinition, 6,
2410
2412
  rb_ary_entry(yyvsp[-5], 1),
@@ -2415,29 +2417,29 @@ yyreduce:
2415
2417
  yyvsp[0]
2416
2418
  );
2417
2419
  }
2418
- #line 2419 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2420
+ #line 2421 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2419
2421
  break;
2420
2422
 
2421
2423
  case 105: /* fragment_name_opt: %empty */
2422
- #line 456 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2424
+ #line 458 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2423
2425
  { yyval = Qnil; }
2424
- #line 2425 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2426
+ #line 2427 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2425
2427
  break;
2426
2428
 
2427
2429
  case 106: /* fragment_name_opt: name_without_on */
2428
- #line 457 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2430
+ #line 459 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2429
2431
  { yyval = rb_ary_entry(yyvsp[0], 3); }
2430
- #line 2431 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2432
+ #line 2433 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2431
2433
  break;
2432
2434
 
2433
2435
  case 108: /* type: nullable_type BANG */
2434
- #line 461 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2436
+ #line 463 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2435
2437
  { yyval = MAKE_AST_NODE(NonNullType, 3, rb_funcall(yyvsp[-1], rb_intern("line"), 0), rb_funcall(yyvsp[-1], rb_intern("col"), 0), yyvsp[-1]); }
2436
- #line 2437 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2438
+ #line 2439 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2437
2439
  break;
2438
2440
 
2439
2441
  case 109: /* nullable_type: name */
2440
- #line 464 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2442
+ #line 466 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2441
2443
  {
2442
2444
  yyval = MAKE_AST_NODE(TypeName, 3,
2443
2445
  rb_ary_entry(yyvsp[0], 1),
@@ -2445,11 +2447,11 @@ yyreduce:
2445
2447
  rb_ary_entry(yyvsp[0], 3)
2446
2448
  );
2447
2449
  }
2448
- #line 2449 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2450
+ #line 2451 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2449
2451
  break;
2450
2452
 
2451
2453
  case 110: /* nullable_type: LBRACKET type RBRACKET */
2452
- #line 471 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2454
+ #line 473 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2453
2455
  {
2454
2456
  yyval = MAKE_AST_NODE(ListType, 3,
2455
2457
  rb_funcall(yyvsp[-1], rb_intern("line"), 0),
@@ -2457,11 +2459,11 @@ yyreduce:
2457
2459
  yyvsp[-1]
2458
2460
  );
2459
2461
  }
2460
- #line 2461 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2462
+ #line 2463 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2461
2463
  break;
2462
2464
 
2463
2465
  case 114: /* schema_definition: SCHEMA directives_list_opt operation_type_definition_list_opt */
2464
- #line 485 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2466
+ #line 487 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2465
2467
  {
2466
2468
  yyval = MAKE_AST_NODE(SchemaDefinition, 6,
2467
2469
  rb_ary_entry(yyvsp[-2], 1),
@@ -2473,54 +2475,54 @@ yyreduce:
2473
2475
  yyvsp[-1]
2474
2476
  );
2475
2477
  }
2476
- #line 2477 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2478
+ #line 2479 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2477
2479
  break;
2478
2480
 
2479
2481
  case 115: /* operation_type_definition_list_opt: %empty */
2480
- #line 498 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2482
+ #line 500 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2481
2483
  { yyval = rb_hash_new(); }
2482
- #line 2483 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2484
+ #line 2485 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2483
2485
  break;
2484
2486
 
2485
2487
  case 116: /* operation_type_definition_list_opt: LCURLY operation_type_definition_list RCURLY */
2486
- #line 499 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2488
+ #line 501 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2487
2489
  { yyval = yyvsp[-1]; }
2488
- #line 2489 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2490
+ #line 2491 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2489
2491
  break;
2490
2492
 
2491
2493
  case 117: /* operation_type_definition_list: operation_type_definition */
2492
- #line 502 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2494
+ #line 504 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2493
2495
  {
2494
2496
  yyval = rb_hash_new();
2495
2497
  rb_hash_aset(yyval, rb_ary_entry(yyvsp[0], 0), rb_ary_entry(yyvsp[0], 1));
2496
2498
  }
2497
- #line 2498 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2499
+ #line 2500 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2498
2500
  break;
2499
2501
 
2500
2502
  case 118: /* operation_type_definition_list: operation_type_definition_list operation_type_definition */
2501
- #line 506 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2503
+ #line 508 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2502
2504
  {
2503
2505
  rb_hash_aset(yyval, rb_ary_entry(yyvsp[0], 0), rb_ary_entry(yyvsp[0], 1));
2504
2506
  }
2505
- #line 2506 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2507
+ #line 2508 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2506
2508
  break;
2507
2509
 
2508
2510
  case 119: /* operation_type_definition: operation_type COLON name */
2509
- #line 511 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2511
+ #line 513 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2510
2512
  {
2511
2513
  yyval = rb_ary_new_from_args(2, rb_ary_entry(yyvsp[-2], 3), rb_ary_entry(yyvsp[0], 3));
2512
2514
  }
2513
- #line 2514 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2515
+ #line 2516 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2514
2516
  break;
2515
2517
 
2516
2518
  case 127: /* description_opt: %empty */
2517
- #line 526 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2519
+ #line 528 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2518
2520
  { yyval = Qnil; }
2519
- #line 2520 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2521
+ #line 2522 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2520
2522
  break;
2521
2523
 
2522
2524
  case 129: /* scalar_type_definition: description_opt SCALAR name directives_list_opt */
2523
- #line 530 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2525
+ #line 532 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2524
2526
  {
2525
2527
  yyval = MAKE_AST_NODE(ScalarTypeDefinition, 5,
2526
2528
  rb_ary_entry(yyvsp[-2], 1),
@@ -2531,11 +2533,11 @@ yyreduce:
2531
2533
  yyvsp[0]
2532
2534
  );
2533
2535
  }
2534
- #line 2535 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2536
+ #line 2537 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2535
2537
  break;
2536
2538
 
2537
2539
  case 130: /* object_type_definition: description_opt TYPE_LITERAL name implements_opt directives_list_opt field_definition_list_opt */
2538
- #line 542 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2540
+ #line 544 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2539
2541
  {
2540
2542
  yyval = MAKE_AST_NODE(ObjectTypeDefinition, 7,
2541
2543
  rb_ary_entry(yyvsp[-4], 1),
@@ -2548,35 +2550,35 @@ yyreduce:
2548
2550
  yyvsp[0]
2549
2551
  );
2550
2552
  }
2551
- #line 2552 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2553
+ #line 2554 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2552
2554
  break;
2553
2555
 
2554
2556
  case 131: /* implements_opt: %empty */
2555
- #line 556 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2557
+ #line 558 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2556
2558
  { yyval = GraphQL_Language_Nodes_NONE; }
2557
- #line 2558 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2559
+ #line 2560 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2558
2560
  break;
2559
2561
 
2560
2562
  case 132: /* implements_opt: IMPLEMENTS AMP interfaces_list */
2561
- #line 557 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2563
+ #line 559 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2562
2564
  { yyval = yyvsp[0]; }
2563
- #line 2564 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2565
+ #line 2566 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2564
2566
  break;
2565
2567
 
2566
2568
  case 133: /* implements_opt: IMPLEMENTS interfaces_list */
2567
- #line 558 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2569
+ #line 560 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2568
2570
  { yyval = yyvsp[0]; }
2569
- #line 2570 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2571
+ #line 2572 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2570
2572
  break;
2571
2573
 
2572
2574
  case 134: /* implements_opt: IMPLEMENTS legacy_interfaces_list */
2573
- #line 559 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2575
+ #line 561 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2574
2576
  { yyval = yyvsp[0]; }
2575
- #line 2576 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2577
+ #line 2578 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2576
2578
  break;
2577
2579
 
2578
2580
  case 135: /* interfaces_list: name */
2579
- #line 562 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2581
+ #line 564 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2580
2582
  {
2581
2583
  VALUE new_name = MAKE_AST_NODE(TypeName, 3,
2582
2584
  rb_ary_entry(yyvsp[0], 1),
@@ -2585,20 +2587,20 @@ yyreduce:
2585
2587
  );
2586
2588
  yyval = rb_ary_new_from_args(1, new_name);
2587
2589
  }
2588
- #line 2589 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2590
+ #line 2591 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2589
2591
  break;
2590
2592
 
2591
2593
  case 136: /* interfaces_list: interfaces_list AMP name */
2592
- #line 570 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2594
+ #line 572 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2593
2595
  {
2594
2596
  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));
2595
2597
  rb_ary_push(yyval, new_name);
2596
2598
  }
2597
- #line 2598 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2599
+ #line 2600 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2598
2600
  break;
2599
2601
 
2600
2602
  case 137: /* legacy_interfaces_list: name */
2601
- #line 576 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2603
+ #line 578 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2602
2604
  {
2603
2605
  VALUE new_name = MAKE_AST_NODE(TypeName, 3,
2604
2606
  rb_ary_entry(yyvsp[0], 1),
@@ -2607,19 +2609,19 @@ yyreduce:
2607
2609
  );
2608
2610
  yyval = rb_ary_new_from_args(1, new_name);
2609
2611
  }
2610
- #line 2611 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2612
+ #line 2613 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2611
2613
  break;
2612
2614
 
2613
2615
  case 138: /* legacy_interfaces_list: legacy_interfaces_list name */
2614
- #line 584 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2616
+ #line 586 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2615
2617
  {
2616
2618
  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)));
2617
2619
  }
2618
- #line 2619 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2620
+ #line 2621 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2619
2621
  break;
2620
2622
 
2621
2623
  case 139: /* input_value_definition: description_opt name COLON type default_value_opt directives_list_opt */
2622
- #line 589 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2624
+ #line 591 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2623
2625
  {
2624
2626
  yyval = MAKE_AST_NODE(InputValueDefinition, 7,
2625
2627
  rb_ary_entry(yyvsp[-4], 1),
@@ -2632,35 +2634,35 @@ yyreduce:
2632
2634
  yyvsp[0]
2633
2635
  );
2634
2636
  }
2635
- #line 2636 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2637
+ #line 2638 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2636
2638
  break;
2637
2639
 
2638
2640
  case 140: /* input_value_definition_list: input_value_definition */
2639
- #line 603 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2641
+ #line 605 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2640
2642
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2641
- #line 2642 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2643
+ #line 2644 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2642
2644
  break;
2643
2645
 
2644
2646
  case 141: /* input_value_definition_list: input_value_definition_list input_value_definition */
2645
- #line 604 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2647
+ #line 606 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2646
2648
  { rb_ary_push(yyval, yyvsp[0]); }
2647
- #line 2648 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2649
+ #line 2650 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2648
2650
  break;
2649
2651
 
2650
2652
  case 142: /* arguments_definitions_opt: %empty */
2651
- #line 607 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2653
+ #line 609 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2652
2654
  { yyval = GraphQL_Language_Nodes_NONE; }
2653
- #line 2654 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2655
+ #line 2656 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2654
2656
  break;
2655
2657
 
2656
2658
  case 143: /* arguments_definitions_opt: LPAREN input_value_definition_list RPAREN */
2657
- #line 608 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2659
+ #line 610 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2658
2660
  { yyval = yyvsp[-1]; }
2659
- #line 2660 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2661
+ #line 2662 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2660
2662
  break;
2661
2663
 
2662
2664
  case 144: /* field_definition: description_opt name arguments_definitions_opt COLON type directives_list_opt */
2663
- #line 611 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2665
+ #line 613 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2664
2666
  {
2665
2667
  yyval = MAKE_AST_NODE(FieldDefinition, 7,
2666
2668
  rb_ary_entry(yyvsp[-4], 1),
@@ -2673,41 +2675,41 @@ yyreduce:
2673
2675
  yyvsp[0]
2674
2676
  );
2675
2677
  }
2676
- #line 2677 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2678
+ #line 2679 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2677
2679
  break;
2678
2680
 
2679
2681
  case 145: /* field_definition_list_opt: %empty */
2680
- #line 625 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2682
+ #line 627 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2681
2683
  { yyval = GraphQL_Language_Nodes_NONE; }
2682
- #line 2683 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2684
+ #line 2685 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2683
2685
  break;
2684
2686
 
2685
2687
  case 146: /* field_definition_list_opt: LCURLY field_definition_list RCURLY */
2686
- #line 626 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2688
+ #line 628 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2687
2689
  { yyval = yyvsp[-1]; }
2688
- #line 2689 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2690
+ #line 2691 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2689
2691
  break;
2690
2692
 
2691
2693
  case 147: /* field_definition_list: %empty */
2692
- #line 629 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2694
+ #line 631 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2693
2695
  { yyval = GraphQL_Language_Nodes_NONE; }
2694
- #line 2695 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2696
+ #line 2697 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2695
2697
  break;
2696
2698
 
2697
2699
  case 148: /* field_definition_list: field_definition */
2698
- #line 630 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2700
+ #line 632 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2699
2701
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2700
- #line 2701 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2702
+ #line 2703 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2701
2703
  break;
2702
2704
 
2703
2705
  case 149: /* field_definition_list: field_definition_list field_definition */
2704
- #line 631 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2706
+ #line 633 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2705
2707
  { rb_ary_push(yyval, yyvsp[0]); }
2706
- #line 2707 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2708
+ #line 2709 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2707
2709
  break;
2708
2710
 
2709
2711
  case 150: /* interface_type_definition: description_opt INTERFACE name implements_opt directives_list_opt field_definition_list_opt */
2710
- #line 634 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2712
+ #line 636 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2711
2713
  {
2712
2714
  yyval = MAKE_AST_NODE(InterfaceTypeDefinition, 7,
2713
2715
  rb_ary_entry(yyvsp[-4], 1),
@@ -2720,23 +2722,23 @@ yyreduce:
2720
2722
  yyvsp[0]
2721
2723
  );
2722
2724
  }
2723
- #line 2724 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2725
+ #line 2726 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2724
2726
  break;
2725
2727
 
2726
2728
  case 151: /* pipe_opt: %empty */
2727
- #line 648 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2729
+ #line 650 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2728
2730
  { yyval = GraphQL_Language_Nodes_NONE; }
2729
- #line 2730 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2731
+ #line 2732 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2730
2732
  break;
2731
2733
 
2732
2734
  case 152: /* pipe_opt: PIPE */
2733
- #line 649 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2735
+ #line 651 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2734
2736
  { yyval = GraphQL_Language_Nodes_NONE; }
2735
- #line 2736 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2737
+ #line 2738 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2736
2738
  break;
2737
2739
 
2738
2740
  case 153: /* union_members: pipe_opt name */
2739
- #line 652 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2741
+ #line 654 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2740
2742
  {
2741
2743
  VALUE new_member = MAKE_AST_NODE(TypeName, 3,
2742
2744
  rb_ary_entry(yyvsp[0], 1),
@@ -2745,19 +2747,19 @@ yyreduce:
2745
2747
  );
2746
2748
  yyval = rb_ary_new_from_args(1, new_member);
2747
2749
  }
2748
- #line 2749 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2750
+ #line 2751 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2749
2751
  break;
2750
2752
 
2751
2753
  case 154: /* union_members: union_members PIPE name */
2752
- #line 660 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2754
+ #line 662 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2753
2755
  {
2754
2756
  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)));
2755
2757
  }
2756
- #line 2757 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2758
+ #line 2759 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2757
2759
  break;
2758
2760
 
2759
2761
  case 155: /* union_type_definition: description_opt UNION name directives_list_opt EQUALS union_members */
2760
- #line 665 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2762
+ #line 667 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2761
2763
  {
2762
2764
  yyval = MAKE_AST_NODE(UnionTypeDefinition, 6,
2763
2765
  rb_ary_entry(yyvsp[-4], 1),
@@ -2769,11 +2771,11 @@ yyreduce:
2769
2771
  yyvsp[-2]
2770
2772
  );
2771
2773
  }
2772
- #line 2773 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2774
+ #line 2775 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2773
2775
  break;
2774
2776
 
2775
2777
  case 156: /* enum_type_definition: description_opt ENUM name directives_list_opt LCURLY enum_value_definitions RCURLY */
2776
- #line 678 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2778
+ #line 680 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2777
2779
  {
2778
2780
  yyval = MAKE_AST_NODE(EnumTypeDefinition, 6,
2779
2781
  rb_ary_entry(yyvsp[-5], 1),
@@ -2785,11 +2787,11 @@ yyreduce:
2785
2787
  yyvsp[-1]
2786
2788
  );
2787
2789
  }
2788
- #line 2789 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2790
+ #line 2791 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2789
2791
  break;
2790
2792
 
2791
2793
  case 157: /* enum_value_definition: description_opt enum_name directives_list_opt */
2792
- #line 691 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2794
+ #line 693 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2793
2795
  {
2794
2796
  yyval = MAKE_AST_NODE(EnumValueDefinition, 5,
2795
2797
  rb_ary_entry(yyvsp[-1], 1),
@@ -2800,23 +2802,23 @@ yyreduce:
2800
2802
  yyvsp[0]
2801
2803
  );
2802
2804
  }
2803
- #line 2804 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2805
+ #line 2806 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2804
2806
  break;
2805
2807
 
2806
2808
  case 158: /* enum_value_definitions: enum_value_definition */
2807
- #line 703 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2809
+ #line 705 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2808
2810
  { yyval = rb_ary_new_from_args(1, yyvsp[0]); }
2809
- #line 2810 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2811
+ #line 2812 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2810
2812
  break;
2811
2813
 
2812
2814
  case 159: /* enum_value_definitions: enum_value_definitions enum_value_definition */
2813
- #line 704 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2815
+ #line 706 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2814
2816
  { rb_ary_push(yyval, yyvsp[0]); }
2815
- #line 2816 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2817
+ #line 2818 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2816
2818
  break;
2817
2819
 
2818
2820
  case 160: /* input_object_type_definition: description_opt INPUT name directives_list_opt LCURLY input_value_definition_list RCURLY */
2819
- #line 707 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2821
+ #line 709 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2820
2822
  {
2821
2823
  yyval = MAKE_AST_NODE(InputObjectTypeDefinition, 6,
2822
2824
  rb_ary_entry(yyvsp[-5], 1),
@@ -2828,11 +2830,11 @@ yyreduce:
2828
2830
  yyvsp[-1]
2829
2831
  );
2830
2832
  }
2831
- #line 2832 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2833
+ #line 2834 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2832
2834
  break;
2833
2835
 
2834
2836
  case 161: /* directive_definition: description_opt DIRECTIVE DIR_SIGN name arguments_definitions_opt directive_repeatable_opt ON directive_locations */
2835
- #line 720 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2837
+ #line 722 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2836
2838
  {
2837
2839
  yyval = MAKE_AST_NODE(DirectiveDefinition, 7,
2838
2840
  rb_ary_entry(yyvsp[-6], 1),
@@ -2845,35 +2847,35 @@ yyreduce:
2845
2847
  yyvsp[0]
2846
2848
  );
2847
2849
  }
2848
- #line 2849 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2850
+ #line 2851 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2849
2851
  break;
2850
2852
 
2851
2853
  case 162: /* directive_repeatable_opt: %empty */
2852
- #line 734 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2854
+ #line 736 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2853
2855
  { yyval = Qnil; }
2854
- #line 2855 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2856
+ #line 2857 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2855
2857
  break;
2856
2858
 
2857
2859
  case 163: /* directive_repeatable_opt: REPEATABLE */
2858
- #line 735 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2860
+ #line 737 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2859
2861
  { yyval = Qtrue; }
2860
- #line 2861 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2862
+ #line 2863 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2861
2863
  break;
2862
2864
 
2863
2865
  case 164: /* directive_locations: name */
2864
- #line 738 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2866
+ #line 740 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2865
2867
  { 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))); }
2866
- #line 2867 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2868
+ #line 2869 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2867
2869
  break;
2868
2870
 
2869
2871
  case 165: /* directive_locations: directive_locations PIPE name */
2870
- #line 739 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2872
+ #line 741 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2871
2873
  { 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))); }
2872
- #line 2873 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2874
+ #line 2875 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2873
2875
  break;
2874
2876
 
2875
2877
  case 168: /* schema_extension: EXTEND SCHEMA directives_list_opt LCURLY operation_type_definition_list RCURLY */
2876
- #line 747 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2878
+ #line 749 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2877
2879
  {
2878
2880
  yyval = MAKE_AST_NODE(SchemaExtension, 6,
2879
2881
  rb_ary_entry(yyvsp[-5], 1),
@@ -2885,11 +2887,11 @@ yyreduce:
2885
2887
  yyvsp[-3]
2886
2888
  );
2887
2889
  }
2888
- #line 2889 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2890
+ #line 2891 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2889
2891
  break;
2890
2892
 
2891
2893
  case 169: /* schema_extension: EXTEND SCHEMA directives_list */
2892
- #line 758 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2894
+ #line 760 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2893
2895
  {
2894
2896
  yyval = MAKE_AST_NODE(SchemaExtension, 6,
2895
2897
  rb_ary_entry(yyvsp[-2], 1),
@@ -2900,11 +2902,11 @@ yyreduce:
2900
2902
  yyvsp[0]
2901
2903
  );
2902
2904
  }
2903
- #line 2904 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2905
+ #line 2906 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2904
2906
  break;
2905
2907
 
2906
2908
  case 176: /* scalar_type_extension: EXTEND SCALAR name directives_list */
2907
- #line 777 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2909
+ #line 779 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2908
2910
  {
2909
2911
  yyval = MAKE_AST_NODE(ScalarTypeExtension, 4,
2910
2912
  rb_ary_entry(yyvsp[-3], 1),
@@ -2913,11 +2915,11 @@ yyreduce:
2913
2915
  yyvsp[0]
2914
2916
  );
2915
2917
  }
2916
- #line 2917 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2918
+ #line 2919 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2917
2919
  break;
2918
2920
 
2919
2921
  case 177: /* object_type_extension: EXTEND TYPE_LITERAL name implements_opt directives_list_opt field_definition_list_opt */
2920
- #line 787 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2922
+ #line 789 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2921
2923
  {
2922
2924
  yyval = MAKE_AST_NODE(ObjectTypeExtension, 6,
2923
2925
  rb_ary_entry(yyvsp[-5], 1),
@@ -2928,11 +2930,11 @@ yyreduce:
2928
2930
  yyvsp[0]
2929
2931
  );
2930
2932
  }
2931
- #line 2932 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2933
+ #line 2934 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2932
2934
  break;
2933
2935
 
2934
2936
  case 178: /* interface_type_extension: EXTEND INTERFACE name implements_opt directives_list_opt field_definition_list_opt */
2935
- #line 799 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2937
+ #line 801 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2936
2938
  {
2937
2939
  yyval = MAKE_AST_NODE(InterfaceTypeExtension, 6,
2938
2940
  rb_ary_entry(yyvsp[-5], 1),
@@ -2943,11 +2945,11 @@ yyreduce:
2943
2945
  yyvsp[0]
2944
2946
  );
2945
2947
  }
2946
- #line 2947 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2948
+ #line 2949 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2947
2949
  break;
2948
2950
 
2949
2951
  case 179: /* union_type_extension: EXTEND UNION name directives_list_opt EQUALS union_members */
2950
- #line 811 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2952
+ #line 813 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2951
2953
  {
2952
2954
  yyval = MAKE_AST_NODE(UnionTypeExtension, 5,
2953
2955
  rb_ary_entry(yyvsp[-5], 1),
@@ -2957,11 +2959,11 @@ yyreduce:
2957
2959
  yyvsp[-2]
2958
2960
  );
2959
2961
  }
2960
- #line 2961 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2962
+ #line 2963 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2961
2963
  break;
2962
2964
 
2963
2965
  case 180: /* union_type_extension: EXTEND UNION name directives_list */
2964
- #line 820 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2966
+ #line 822 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2965
2967
  {
2966
2968
  yyval = MAKE_AST_NODE(UnionTypeExtension, 5,
2967
2969
  rb_ary_entry(yyvsp[-3], 1),
@@ -2971,11 +2973,11 @@ yyreduce:
2971
2973
  yyvsp[0]
2972
2974
  );
2973
2975
  }
2974
- #line 2975 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2976
+ #line 2977 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2975
2977
  break;
2976
2978
 
2977
2979
  case 181: /* enum_type_extension: EXTEND ENUM name directives_list_opt LCURLY enum_value_definitions RCURLY */
2978
- #line 831 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2980
+ #line 833 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2979
2981
  {
2980
2982
  yyval = MAKE_AST_NODE(EnumTypeExtension, 5,
2981
2983
  rb_ary_entry(yyvsp[-6], 1),
@@ -2985,11 +2987,11 @@ yyreduce:
2985
2987
  yyvsp[-1]
2986
2988
  );
2987
2989
  }
2988
- #line 2989 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2990
+ #line 2991 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
2989
2991
  break;
2990
2992
 
2991
2993
  case 182: /* enum_type_extension: EXTEND ENUM name directives_list */
2992
- #line 840 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2994
+ #line 842 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
2993
2995
  {
2994
2996
  yyval = MAKE_AST_NODE(EnumTypeExtension, 5,
2995
2997
  rb_ary_entry(yyvsp[-3], 1),
@@ -2999,11 +3001,11 @@ yyreduce:
2999
3001
  GraphQL_Language_Nodes_NONE
3000
3002
  );
3001
3003
  }
3002
- #line 3003 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3004
+ #line 3005 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3003
3005
  break;
3004
3006
 
3005
3007
  case 183: /* input_object_type_extension: EXTEND INPUT name directives_list_opt LCURLY input_value_definition_list RCURLY */
3006
- #line 851 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3008
+ #line 853 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3007
3009
  {
3008
3010
  yyval = MAKE_AST_NODE(InputObjectTypeExtension, 5,
3009
3011
  rb_ary_entry(yyvsp[-6], 1),
@@ -3013,11 +3015,11 @@ yyreduce:
3013
3015
  yyvsp[-1]
3014
3016
  );
3015
3017
  }
3016
- #line 3017 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3018
+ #line 3019 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3017
3019
  break;
3018
3020
 
3019
3021
  case 184: /* input_object_type_extension: EXTEND INPUT name directives_list */
3020
- #line 860 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3022
+ #line 862 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3021
3023
  {
3022
3024
  yyval = MAKE_AST_NODE(InputObjectTypeExtension, 5,
3023
3025
  rb_ary_entry(yyvsp[-3], 1),
@@ -3027,11 +3029,11 @@ yyreduce:
3027
3029
  GraphQL_Language_Nodes_NONE
3028
3030
  );
3029
3031
  }
3030
- #line 3031 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3032
+ #line 3033 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3031
3033
  break;
3032
3034
 
3033
3035
  case 185: /* NamedTypeForCondition: name */
3034
- #line 872 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3036
+ #line 874 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3035
3037
  {
3036
3038
  /* This action creates a TypeName AST node.
3037
3039
  $1 (yyvsp[0] in C) refers to the semantic value of 'name'.
@@ -3043,11 +3045,11 @@ yyreduce:
3043
3045
  rb_ary_entry(yyvsp[0], 3) /* name string itself */
3044
3046
  );
3045
3047
  }
3046
- #line 3047 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3048
+ #line 3049 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3047
3049
  break;
3048
3050
 
3049
3051
 
3050
- #line 3051 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3052
+ #line 3053 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
3051
3053
 
3052
3054
  default: break;
3053
3055
  }
@@ -3271,7 +3273,7 @@ yyreturnlab:
3271
3273
  return yyresult;
3272
3274
  }
3273
3275
 
3274
- #line 885 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3276
+ #line 887 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
3275
3277
 
3276
3278
 
3277
3279
  // Custom functions