graphql 1.10.2 → 1.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/graphql/core.rb +10 -2
- data/lib/generators/graphql/templates/schema.erb +1 -0
- data/lib/graphql/define/defined_object_proxy.rb +1 -1
- data/lib/graphql/define/instance_definable.rb +1 -1
- data/lib/graphql/execution/interpreter.rb +3 -0
- data/lib/graphql/execution/interpreter/handles_raw_value.rb +25 -0
- data/lib/graphql/execution/interpreter/runtime.rb +37 -121
- data/lib/graphql/field.rb +1 -1
- data/lib/graphql/language/nodes.rb +41 -83
- data/lib/graphql/language/parser.rb +96 -96
- data/lib/graphql/language/parser.y +96 -96
- data/lib/graphql/pagination/connections.rb +21 -5
- data/lib/graphql/query/null_context.rb +5 -1
- data/lib/graphql/query/variables.rb +9 -3
- data/lib/graphql/schema.rb +18 -2
- data/lib/graphql/schema/build_from_definition.rb +15 -1
- data/lib/graphql/schema/enum.rb +4 -1
- data/lib/graphql/schema/field.rb +11 -0
- data/lib/graphql/schema/field/connection_extension.rb +2 -1
- data/lib/graphql/schema/input_object.rb +21 -38
- data/lib/graphql/schema/member/base_dsl_methods.rb +11 -4
- data/lib/graphql/schema/member/has_arguments.rb +53 -2
- data/lib/graphql/schema/member/has_ast_node.rb +4 -1
- data/lib/graphql/schema/member/has_fields.rb +1 -1
- data/lib/graphql/schema/resolver.rb +2 -2
- data/lib/graphql/schema/resolver/has_payload_type.rb +3 -1
- data/lib/graphql/schema/warden.rb +10 -0
- data/lib/graphql/static_validation/rules/variable_default_values_are_correctly_typed.rb +0 -1
- data/lib/graphql/subscriptions.rb +14 -9
- data/lib/graphql/subscriptions/subscription_root.rb +2 -1
- data/lib/graphql/version.rb +1 -1
- metadata +4 -3
@@ -967,14 +967,14 @@ Racc_debug_parser = false
|
|
967
967
|
|
968
968
|
module_eval(<<'.,.,', 'parser.y', 4)
|
969
969
|
def _reduce_2(val, _values, result)
|
970
|
-
|
970
|
+
result = make_node(:Document, definitions: val[0])
|
971
971
|
result
|
972
972
|
end
|
973
973
|
.,.,
|
974
974
|
|
975
975
|
module_eval(<<'.,.,', 'parser.y', 7)
|
976
976
|
def _reduce_3(val, _values, result)
|
977
|
-
|
977
|
+
result = [val[0]]
|
978
978
|
result
|
979
979
|
end
|
980
980
|
.,.,
|
@@ -998,7 +998,7 @@ module_eval(<<'.,.,', 'parser.y', 8)
|
|
998
998
|
|
999
999
|
module_eval(<<'.,.,', 'parser.y', 21)
|
1000
1000
|
def _reduce_10(val, _values, result)
|
1001
|
-
|
1001
|
+
result = make_node(
|
1002
1002
|
:OperationDefinition, {
|
1003
1003
|
operation_type: val[0],
|
1004
1004
|
name: val[1],
|
@@ -1015,7 +1015,7 @@ module_eval(<<'.,.,', 'parser.y', 21)
|
|
1015
1015
|
|
1016
1016
|
module_eval(<<'.,.,', 'parser.y', 33)
|
1017
1017
|
def _reduce_11(val, _values, result)
|
1018
|
-
|
1018
|
+
result = make_node(
|
1019
1019
|
:OperationDefinition, {
|
1020
1020
|
operation_type: "query",
|
1021
1021
|
selections: val[1],
|
@@ -1029,7 +1029,7 @@ module_eval(<<'.,.,', 'parser.y', 33)
|
|
1029
1029
|
|
1030
1030
|
module_eval(<<'.,.,', 'parser.y', 42)
|
1031
1031
|
def _reduce_12(val, _values, result)
|
1032
|
-
|
1032
|
+
result = make_node(
|
1033
1033
|
:OperationDefinition, {
|
1034
1034
|
operation_type: "query",
|
1035
1035
|
selections: [],
|
@@ -1049,7 +1049,7 @@ module_eval(<<'.,.,', 'parser.y', 42)
|
|
1049
1049
|
|
1050
1050
|
module_eval(<<'.,.,', 'parser.y', 57)
|
1051
1051
|
def _reduce_16(val, _values, result)
|
1052
|
-
|
1052
|
+
result = nil
|
1053
1053
|
result
|
1054
1054
|
end
|
1055
1055
|
.,.,
|
@@ -1058,21 +1058,21 @@ module_eval(<<'.,.,', 'parser.y', 57)
|
|
1058
1058
|
|
1059
1059
|
module_eval(<<'.,.,', 'parser.y', 61)
|
1060
1060
|
def _reduce_18(val, _values, result)
|
1061
|
-
|
1061
|
+
result = EMPTY_ARRAY
|
1062
1062
|
result
|
1063
1063
|
end
|
1064
1064
|
.,.,
|
1065
1065
|
|
1066
1066
|
module_eval(<<'.,.,', 'parser.y', 62)
|
1067
1067
|
def _reduce_19(val, _values, result)
|
1068
|
-
|
1068
|
+
result = val[1]
|
1069
1069
|
result
|
1070
1070
|
end
|
1071
1071
|
.,.,
|
1072
1072
|
|
1073
1073
|
module_eval(<<'.,.,', 'parser.y', 65)
|
1074
1074
|
def _reduce_20(val, _values, result)
|
1075
|
-
|
1075
|
+
result = [val[0]]
|
1076
1076
|
result
|
1077
1077
|
end
|
1078
1078
|
.,.,
|
@@ -1086,7 +1086,7 @@ module_eval(<<'.,.,', 'parser.y', 66)
|
|
1086
1086
|
|
1087
1087
|
module_eval(<<'.,.,', 'parser.y', 70)
|
1088
1088
|
def _reduce_22(val, _values, result)
|
1089
|
-
|
1089
|
+
result = make_node(:VariableDefinition, {
|
1090
1090
|
name: val[1],
|
1091
1091
|
type: val[3],
|
1092
1092
|
default_value: val[4],
|
@@ -1099,70 +1099,70 @@ module_eval(<<'.,.,', 'parser.y', 70)
|
|
1099
1099
|
|
1100
1100
|
module_eval(<<'.,.,', 'parser.y', 79)
|
1101
1101
|
def _reduce_23(val, _values, result)
|
1102
|
-
|
1102
|
+
result = val[0]
|
1103
1103
|
result
|
1104
1104
|
end
|
1105
1105
|
.,.,
|
1106
1106
|
|
1107
1107
|
module_eval(<<'.,.,', 'parser.y', 80)
|
1108
1108
|
def _reduce_24(val, _values, result)
|
1109
|
-
|
1109
|
+
result = make_node(:NonNullType, of_type: val[0])
|
1110
1110
|
result
|
1111
1111
|
end
|
1112
1112
|
.,.,
|
1113
1113
|
|
1114
1114
|
module_eval(<<'.,.,', 'parser.y', 83)
|
1115
1115
|
def _reduce_25(val, _values, result)
|
1116
|
-
|
1116
|
+
result = make_node(:TypeName, name: val[0])
|
1117
1117
|
result
|
1118
1118
|
end
|
1119
1119
|
.,.,
|
1120
1120
|
|
1121
1121
|
module_eval(<<'.,.,', 'parser.y', 84)
|
1122
1122
|
def _reduce_26(val, _values, result)
|
1123
|
-
|
1123
|
+
result = make_node(:ListType, of_type: val[1])
|
1124
1124
|
result
|
1125
1125
|
end
|
1126
1126
|
.,.,
|
1127
1127
|
|
1128
1128
|
module_eval(<<'.,.,', 'parser.y', 87)
|
1129
1129
|
def _reduce_27(val, _values, result)
|
1130
|
-
|
1130
|
+
result = nil
|
1131
1131
|
result
|
1132
1132
|
end
|
1133
1133
|
.,.,
|
1134
1134
|
|
1135
1135
|
module_eval(<<'.,.,', 'parser.y', 88)
|
1136
1136
|
def _reduce_28(val, _values, result)
|
1137
|
-
|
1137
|
+
result = val[1]
|
1138
1138
|
result
|
1139
1139
|
end
|
1140
1140
|
.,.,
|
1141
1141
|
|
1142
1142
|
module_eval(<<'.,.,', 'parser.y', 91)
|
1143
1143
|
def _reduce_29(val, _values, result)
|
1144
|
-
|
1144
|
+
result = val[1]
|
1145
1145
|
result
|
1146
1146
|
end
|
1147
1147
|
.,.,
|
1148
1148
|
|
1149
1149
|
module_eval(<<'.,.,', 'parser.y', 94)
|
1150
1150
|
def _reduce_30(val, _values, result)
|
1151
|
-
|
1151
|
+
result = EMPTY_ARRAY
|
1152
1152
|
result
|
1153
1153
|
end
|
1154
1154
|
.,.,
|
1155
1155
|
|
1156
1156
|
module_eval(<<'.,.,', 'parser.y', 95)
|
1157
1157
|
def _reduce_31(val, _values, result)
|
1158
|
-
|
1158
|
+
result = val[0]
|
1159
1159
|
result
|
1160
1160
|
end
|
1161
1161
|
.,.,
|
1162
1162
|
|
1163
1163
|
module_eval(<<'.,.,', 'parser.y', 98)
|
1164
1164
|
def _reduce_32(val, _values, result)
|
1165
|
-
|
1165
|
+
result = [result]
|
1166
1166
|
result
|
1167
1167
|
end
|
1168
1168
|
.,.,
|
@@ -1182,7 +1182,7 @@ module_eval(<<'.,.,', 'parser.y', 99)
|
|
1182
1182
|
|
1183
1183
|
module_eval(<<'.,.,', 'parser.y', 108)
|
1184
1184
|
def _reduce_37(val, _values, result)
|
1185
|
-
|
1185
|
+
result = make_node(
|
1186
1186
|
:Field, {
|
1187
1187
|
name: val[0],
|
1188
1188
|
arguments: val[1],
|
@@ -1198,7 +1198,7 @@ module_eval(<<'.,.,', 'parser.y', 108)
|
|
1198
1198
|
|
1199
1199
|
module_eval(<<'.,.,', 'parser.y', 119)
|
1200
1200
|
def _reduce_38(val, _values, result)
|
1201
|
-
|
1201
|
+
result = make_node(
|
1202
1202
|
:Field, {
|
1203
1203
|
alias: val[0],
|
1204
1204
|
name: val[2],
|
@@ -1259,42 +1259,42 @@ module_eval(<<'.,.,', 'parser.y', 119)
|
|
1259
1259
|
|
1260
1260
|
module_eval(<<'.,.,', 'parser.y', 162)
|
1261
1261
|
def _reduce_61(val, _values, result)
|
1262
|
-
|
1262
|
+
result = make_node(:EnumValueDefinition, name: val[1], directives: val[2], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1263
1263
|
result
|
1264
1264
|
end
|
1265
1265
|
.,.,
|
1266
1266
|
|
1267
1267
|
module_eval(<<'.,.,', 'parser.y', 165)
|
1268
1268
|
def _reduce_62(val, _values, result)
|
1269
|
-
|
1269
|
+
result = [val[0]]
|
1270
1270
|
result
|
1271
1271
|
end
|
1272
1272
|
.,.,
|
1273
1273
|
|
1274
1274
|
module_eval(<<'.,.,', 'parser.y', 166)
|
1275
1275
|
def _reduce_63(val, _values, result)
|
1276
|
-
|
1276
|
+
result = val[0] << val[1]
|
1277
1277
|
result
|
1278
1278
|
end
|
1279
1279
|
.,.,
|
1280
1280
|
|
1281
1281
|
module_eval(<<'.,.,', 'parser.y', 169)
|
1282
1282
|
def _reduce_64(val, _values, result)
|
1283
|
-
|
1283
|
+
result = EMPTY_ARRAY
|
1284
1284
|
result
|
1285
1285
|
end
|
1286
1286
|
.,.,
|
1287
1287
|
|
1288
1288
|
module_eval(<<'.,.,', 'parser.y', 170)
|
1289
1289
|
def _reduce_65(val, _values, result)
|
1290
|
-
|
1290
|
+
result = val[1]
|
1291
1291
|
result
|
1292
1292
|
end
|
1293
1293
|
.,.,
|
1294
1294
|
|
1295
1295
|
module_eval(<<'.,.,', 'parser.y', 173)
|
1296
1296
|
def _reduce_66(val, _values, result)
|
1297
|
-
|
1297
|
+
result = [val[0]]
|
1298
1298
|
result
|
1299
1299
|
end
|
1300
1300
|
.,.,
|
@@ -1308,42 +1308,42 @@ module_eval(<<'.,.,', 'parser.y', 174)
|
|
1308
1308
|
|
1309
1309
|
module_eval(<<'.,.,', 'parser.y', 177)
|
1310
1310
|
def _reduce_68(val, _values, result)
|
1311
|
-
|
1311
|
+
result = make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
|
1312
1312
|
result
|
1313
1313
|
end
|
1314
1314
|
.,.,
|
1315
1315
|
|
1316
1316
|
module_eval(<<'.,.,', 'parser.y', 180)
|
1317
1317
|
def _reduce_69(val, _values, result)
|
1318
|
-
|
1318
|
+
result = val[0].to_f
|
1319
1319
|
result
|
1320
1320
|
end
|
1321
1321
|
.,.,
|
1322
1322
|
|
1323
1323
|
module_eval(<<'.,.,', 'parser.y', 181)
|
1324
1324
|
def _reduce_70(val, _values, result)
|
1325
|
-
|
1325
|
+
result = val[0].to_i
|
1326
1326
|
result
|
1327
1327
|
end
|
1328
1328
|
.,.,
|
1329
1329
|
|
1330
1330
|
module_eval(<<'.,.,', 'parser.y', 182)
|
1331
1331
|
def _reduce_71(val, _values, result)
|
1332
|
-
|
1332
|
+
result = val[0].to_s
|
1333
1333
|
result
|
1334
1334
|
end
|
1335
1335
|
.,.,
|
1336
1336
|
|
1337
1337
|
module_eval(<<'.,.,', 'parser.y', 183)
|
1338
1338
|
def _reduce_72(val, _values, result)
|
1339
|
-
|
1339
|
+
result = true
|
1340
1340
|
result
|
1341
1341
|
end
|
1342
1342
|
.,.,
|
1343
1343
|
|
1344
1344
|
module_eval(<<'.,.,', 'parser.y', 184)
|
1345
1345
|
def _reduce_73(val, _values, result)
|
1346
|
-
|
1346
|
+
result = false
|
1347
1347
|
result
|
1348
1348
|
end
|
1349
1349
|
.,.,
|
@@ -1364,35 +1364,35 @@ module_eval(<<'.,.,', 'parser.y', 184)
|
|
1364
1364
|
|
1365
1365
|
module_eval(<<'.,.,', 'parser.y', 195)
|
1366
1366
|
def _reduce_81(val, _values, result)
|
1367
|
-
|
1367
|
+
result = make_node(:NullValue, name: val[0], position_source: val[0])
|
1368
1368
|
result
|
1369
1369
|
end
|
1370
1370
|
.,.,
|
1371
1371
|
|
1372
1372
|
module_eval(<<'.,.,', 'parser.y', 196)
|
1373
1373
|
def _reduce_82(val, _values, result)
|
1374
|
-
|
1374
|
+
result = make_node(:VariableIdentifier, name: val[1], position_source: val[0])
|
1375
1375
|
result
|
1376
1376
|
end
|
1377
1377
|
.,.,
|
1378
1378
|
|
1379
1379
|
module_eval(<<'.,.,', 'parser.y', 199)
|
1380
1380
|
def _reduce_83(val, _values, result)
|
1381
|
-
|
1381
|
+
result = EMPTY_ARRAY
|
1382
1382
|
result
|
1383
1383
|
end
|
1384
1384
|
.,.,
|
1385
1385
|
|
1386
1386
|
module_eval(<<'.,.,', 'parser.y', 200)
|
1387
1387
|
def _reduce_84(val, _values, result)
|
1388
|
-
|
1388
|
+
result = val[1]
|
1389
1389
|
result
|
1390
1390
|
end
|
1391
1391
|
.,.,
|
1392
1392
|
|
1393
1393
|
module_eval(<<'.,.,', 'parser.y', 203)
|
1394
1394
|
def _reduce_85(val, _values, result)
|
1395
|
-
|
1395
|
+
result = [val[0]]
|
1396
1396
|
result
|
1397
1397
|
end
|
1398
1398
|
.,.,
|
@@ -1406,21 +1406,21 @@ module_eval(<<'.,.,', 'parser.y', 204)
|
|
1406
1406
|
|
1407
1407
|
module_eval(<<'.,.,', 'parser.y', 207)
|
1408
1408
|
def _reduce_87(val, _values, result)
|
1409
|
-
|
1409
|
+
result = make_node(:InputObject, arguments: [], position_source: val[0])
|
1410
1410
|
result
|
1411
1411
|
end
|
1412
1412
|
.,.,
|
1413
1413
|
|
1414
1414
|
module_eval(<<'.,.,', 'parser.y', 208)
|
1415
1415
|
def _reduce_88(val, _values, result)
|
1416
|
-
|
1416
|
+
result = make_node(:InputObject, arguments: val[1], position_source: val[0])
|
1417
1417
|
result
|
1418
1418
|
end
|
1419
1419
|
.,.,
|
1420
1420
|
|
1421
1421
|
module_eval(<<'.,.,', 'parser.y', 211)
|
1422
1422
|
def _reduce_89(val, _values, result)
|
1423
|
-
|
1423
|
+
result = [val[0]]
|
1424
1424
|
result
|
1425
1425
|
end
|
1426
1426
|
.,.,
|
@@ -1434,28 +1434,28 @@ module_eval(<<'.,.,', 'parser.y', 212)
|
|
1434
1434
|
|
1435
1435
|
module_eval(<<'.,.,', 'parser.y', 215)
|
1436
1436
|
def _reduce_91(val, _values, result)
|
1437
|
-
|
1437
|
+
result = make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
|
1438
1438
|
result
|
1439
1439
|
end
|
1440
1440
|
.,.,
|
1441
1441
|
|
1442
1442
|
module_eval(<<'.,.,', 'parser.y', 219)
|
1443
1443
|
def _reduce_92(val, _values, result)
|
1444
|
-
|
1444
|
+
result = make_node(:InputObject, arguments: [], position_source: val[0])
|
1445
1445
|
result
|
1446
1446
|
end
|
1447
1447
|
.,.,
|
1448
1448
|
|
1449
1449
|
module_eval(<<'.,.,', 'parser.y', 220)
|
1450
1450
|
def _reduce_93(val, _values, result)
|
1451
|
-
|
1451
|
+
result = make_node(:InputObject, arguments: val[1], position_source: val[0])
|
1452
1452
|
result
|
1453
1453
|
end
|
1454
1454
|
.,.,
|
1455
1455
|
|
1456
1456
|
module_eval(<<'.,.,', 'parser.y', 223)
|
1457
1457
|
def _reduce_94(val, _values, result)
|
1458
|
-
|
1458
|
+
result = [val[0]]
|
1459
1459
|
result
|
1460
1460
|
end
|
1461
1461
|
.,.,
|
@@ -1469,21 +1469,21 @@ module_eval(<<'.,.,', 'parser.y', 224)
|
|
1469
1469
|
|
1470
1470
|
module_eval(<<'.,.,', 'parser.y', 227)
|
1471
1471
|
def _reduce_96(val, _values, result)
|
1472
|
-
|
1472
|
+
result = make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
|
1473
1473
|
result
|
1474
1474
|
end
|
1475
1475
|
.,.,
|
1476
1476
|
|
1477
1477
|
module_eval(<<'.,.,', 'parser.y', 229)
|
1478
1478
|
def _reduce_97(val, _values, result)
|
1479
|
-
|
1479
|
+
result = make_node(:Enum, name: val[0], position_source: val[0])
|
1480
1480
|
result
|
1481
1481
|
end
|
1482
1482
|
.,.,
|
1483
1483
|
|
1484
1484
|
module_eval(<<'.,.,', 'parser.y', 232)
|
1485
1485
|
def _reduce_98(val, _values, result)
|
1486
|
-
|
1486
|
+
result = EMPTY_ARRAY
|
1487
1487
|
result
|
1488
1488
|
end
|
1489
1489
|
.,.,
|
@@ -1492,7 +1492,7 @@ module_eval(<<'.,.,', 'parser.y', 232)
|
|
1492
1492
|
|
1493
1493
|
module_eval(<<'.,.,', 'parser.y', 236)
|
1494
1494
|
def _reduce_100(val, _values, result)
|
1495
|
-
|
1495
|
+
result = [val[0]]
|
1496
1496
|
result
|
1497
1497
|
end
|
1498
1498
|
.,.,
|
@@ -1506,21 +1506,21 @@ module_eval(<<'.,.,', 'parser.y', 237)
|
|
1506
1506
|
|
1507
1507
|
module_eval(<<'.,.,', 'parser.y', 239)
|
1508
1508
|
def _reduce_102(val, _values, result)
|
1509
|
-
|
1509
|
+
result = make_node(:Directive, name: val[1], arguments: val[2], position_source: val[0])
|
1510
1510
|
result
|
1511
1511
|
end
|
1512
1512
|
.,.,
|
1513
1513
|
|
1514
1514
|
module_eval(<<'.,.,', 'parser.y', 242)
|
1515
1515
|
def _reduce_103(val, _values, result)
|
1516
|
-
|
1516
|
+
result = make_node(:FragmentSpread, name: val[1], directives: val[2], position_source: val[0])
|
1517
1517
|
result
|
1518
1518
|
end
|
1519
1519
|
.,.,
|
1520
1520
|
|
1521
1521
|
module_eval(<<'.,.,', 'parser.y', 246)
|
1522
1522
|
def _reduce_104(val, _values, result)
|
1523
|
-
|
1523
|
+
result = make_node(:InlineFragment, {
|
1524
1524
|
type: val[2],
|
1525
1525
|
directives: val[3],
|
1526
1526
|
selections: val[4],
|
@@ -1533,7 +1533,7 @@ module_eval(<<'.,.,', 'parser.y', 246)
|
|
1533
1533
|
|
1534
1534
|
module_eval(<<'.,.,', 'parser.y', 254)
|
1535
1535
|
def _reduce_105(val, _values, result)
|
1536
|
-
|
1536
|
+
result = make_node(:InlineFragment, {
|
1537
1537
|
type: nil,
|
1538
1538
|
directives: val[1],
|
1539
1539
|
selections: val[2],
|
@@ -1546,7 +1546,7 @@ module_eval(<<'.,.,', 'parser.y', 254)
|
|
1546
1546
|
|
1547
1547
|
module_eval(<<'.,.,', 'parser.y', 264)
|
1548
1548
|
def _reduce_106(val, _values, result)
|
1549
|
-
|
1549
|
+
result = make_node(:FragmentDefinition, {
|
1550
1550
|
name: val[1],
|
1551
1551
|
type: val[3],
|
1552
1552
|
directives: val[4],
|
@@ -1561,7 +1561,7 @@ module_eval(<<'.,.,', 'parser.y', 264)
|
|
1561
1561
|
|
1562
1562
|
module_eval(<<'.,.,', 'parser.y', 275)
|
1563
1563
|
def _reduce_107(val, _values, result)
|
1564
|
-
|
1564
|
+
result = nil
|
1565
1565
|
result
|
1566
1566
|
end
|
1567
1567
|
.,.,
|
@@ -1576,7 +1576,7 @@ module_eval(<<'.,.,', 'parser.y', 275)
|
|
1576
1576
|
|
1577
1577
|
module_eval(<<'.,.,', 'parser.y', 284)
|
1578
1578
|
def _reduce_112(val, _values, result)
|
1579
|
-
|
1579
|
+
result = make_node(:SchemaDefinition, position_source: val[0], definition_line: val[0].line, directives: val[1], **val[3])
|
1580
1580
|
result
|
1581
1581
|
end
|
1582
1582
|
.,.,
|
@@ -1585,14 +1585,14 @@ module_eval(<<'.,.,', 'parser.y', 284)
|
|
1585
1585
|
|
1586
1586
|
module_eval(<<'.,.,', 'parser.y', 288)
|
1587
1587
|
def _reduce_114(val, _values, result)
|
1588
|
-
|
1588
|
+
result = val[0].merge(val[1])
|
1589
1589
|
result
|
1590
1590
|
end
|
1591
1591
|
.,.,
|
1592
1592
|
|
1593
1593
|
module_eval(<<'.,.,', 'parser.y', 291)
|
1594
1594
|
def _reduce_115(val, _values, result)
|
1595
|
-
|
1595
|
+
result = { val[0].to_s.to_sym => val[2] }
|
1596
1596
|
result
|
1597
1597
|
end
|
1598
1598
|
.,.,
|
@@ -1615,14 +1615,14 @@ module_eval(<<'.,.,', 'parser.y', 291)
|
|
1615
1615
|
|
1616
1616
|
module_eval(<<'.,.,', 'parser.y', 306)
|
1617
1617
|
def _reduce_124(val, _values, result)
|
1618
|
-
|
1618
|
+
result = make_node(:SchemaExtension, position_source: val[0], directives: val[2], **val[4])
|
1619
1619
|
result
|
1620
1620
|
end
|
1621
1621
|
.,.,
|
1622
1622
|
|
1623
1623
|
module_eval(<<'.,.,', 'parser.y', 307)
|
1624
1624
|
def _reduce_125(val, _values, result)
|
1625
|
-
|
1625
|
+
result = make_node(:SchemaExtension, position_source: val[0], directives: val[2])
|
1626
1626
|
result
|
1627
1627
|
end
|
1628
1628
|
.,.,
|
@@ -1641,91 +1641,91 @@ module_eval(<<'.,.,', 'parser.y', 307)
|
|
1641
1641
|
|
1642
1642
|
module_eval(<<'.,.,', 'parser.y', 317)
|
1643
1643
|
def _reduce_132(val, _values, result)
|
1644
|
-
|
1644
|
+
result = make_node(:ScalarTypeExtension, name: val[2], directives: val[3], position_source: val[0])
|
1645
1645
|
result
|
1646
1646
|
end
|
1647
1647
|
.,.,
|
1648
1648
|
|
1649
1649
|
module_eval(<<'.,.,', 'parser.y', 321)
|
1650
1650
|
def _reduce_133(val, _values, result)
|
1651
|
-
|
1651
|
+
result = make_node(:ObjectTypeExtension, name: val[2], interfaces: val[3], directives: [], fields: val[5], position_source: val[0])
|
1652
1652
|
result
|
1653
1653
|
end
|
1654
1654
|
.,.,
|
1655
1655
|
|
1656
1656
|
module_eval(<<'.,.,', 'parser.y', 322)
|
1657
1657
|
def _reduce_134(val, _values, result)
|
1658
|
-
|
1658
|
+
result = make_node(:ObjectTypeExtension, name: val[2], interfaces: val[3], directives: val[4], fields: val[6], position_source: val[0])
|
1659
1659
|
result
|
1660
1660
|
end
|
1661
1661
|
.,.,
|
1662
1662
|
|
1663
1663
|
module_eval(<<'.,.,', 'parser.y', 323)
|
1664
1664
|
def _reduce_135(val, _values, result)
|
1665
|
-
|
1665
|
+
result = make_node(:ObjectTypeExtension, name: val[2], interfaces: val[3], directives: val[4], fields: [], position_source: val[0])
|
1666
1666
|
result
|
1667
1667
|
end
|
1668
1668
|
.,.,
|
1669
1669
|
|
1670
1670
|
module_eval(<<'.,.,', 'parser.y', 324)
|
1671
1671
|
def _reduce_136(val, _values, result)
|
1672
|
-
|
1672
|
+
result = make_node(:ObjectTypeExtension, name: val[2], interfaces: val[3], directives: [], fields: [], position_source: val[0])
|
1673
1673
|
result
|
1674
1674
|
end
|
1675
1675
|
.,.,
|
1676
1676
|
|
1677
1677
|
module_eval(<<'.,.,', 'parser.y', 327)
|
1678
1678
|
def _reduce_137(val, _values, result)
|
1679
|
-
|
1679
|
+
result = make_node(:InterfaceTypeExtension, name: val[2], directives: val[3], fields: val[5], position_source: val[0])
|
1680
1680
|
result
|
1681
1681
|
end
|
1682
1682
|
.,.,
|
1683
1683
|
|
1684
1684
|
module_eval(<<'.,.,', 'parser.y', 328)
|
1685
1685
|
def _reduce_138(val, _values, result)
|
1686
|
-
|
1686
|
+
result = make_node(:InterfaceTypeExtension, name: val[2], directives: val[3], fields: [], position_source: val[0])
|
1687
1687
|
result
|
1688
1688
|
end
|
1689
1689
|
.,.,
|
1690
1690
|
|
1691
1691
|
module_eval(<<'.,.,', 'parser.y', 331)
|
1692
1692
|
def _reduce_139(val, _values, result)
|
1693
|
-
|
1693
|
+
result = make_node(:UnionTypeExtension, name: val[2], directives: val[3], types: val[5], position_source: val[0])
|
1694
1694
|
result
|
1695
1695
|
end
|
1696
1696
|
.,.,
|
1697
1697
|
|
1698
1698
|
module_eval(<<'.,.,', 'parser.y', 332)
|
1699
1699
|
def _reduce_140(val, _values, result)
|
1700
|
-
|
1700
|
+
result = make_node(:UnionTypeExtension, name: val[2], directives: val[3], types: [], position_source: val[0])
|
1701
1701
|
result
|
1702
1702
|
end
|
1703
1703
|
.,.,
|
1704
1704
|
|
1705
1705
|
module_eval(<<'.,.,', 'parser.y', 335)
|
1706
1706
|
def _reduce_141(val, _values, result)
|
1707
|
-
|
1707
|
+
result = make_node(:EnumTypeExtension, name: val[2], directives: val[3], values: val[5], position_source: val[0])
|
1708
1708
|
result
|
1709
1709
|
end
|
1710
1710
|
.,.,
|
1711
1711
|
|
1712
1712
|
module_eval(<<'.,.,', 'parser.y', 336)
|
1713
1713
|
def _reduce_142(val, _values, result)
|
1714
|
-
|
1714
|
+
result = make_node(:EnumTypeExtension, name: val[2], directives: val[3], values: [], position_source: val[0])
|
1715
1715
|
result
|
1716
1716
|
end
|
1717
1717
|
.,.,
|
1718
1718
|
|
1719
1719
|
module_eval(<<'.,.,', 'parser.y', 339)
|
1720
1720
|
def _reduce_143(val, _values, result)
|
1721
|
-
|
1721
|
+
result = make_node(:InputObjectTypeExtension, name: val[2], directives: val[3], fields: val[5], position_source: val[0])
|
1722
1722
|
result
|
1723
1723
|
end
|
1724
1724
|
.,.,
|
1725
1725
|
|
1726
1726
|
module_eval(<<'.,.,', 'parser.y', 340)
|
1727
1727
|
def _reduce_144(val, _values, result)
|
1728
|
-
|
1728
|
+
result = make_node(:InputObjectTypeExtension, name: val[2], directives: val[3], fields: [], position_source: val[0])
|
1729
1729
|
result
|
1730
1730
|
end
|
1731
1731
|
.,.,
|
@@ -1738,7 +1738,7 @@ module_eval(<<'.,.,', 'parser.y', 340)
|
|
1738
1738
|
|
1739
1739
|
module_eval(<<'.,.,', 'parser.y', 350)
|
1740
1740
|
def _reduce_148(val, _values, result)
|
1741
|
-
|
1741
|
+
result = make_node(:ScalarTypeDefinition, name: val[2], directives: val[3], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1742
1742
|
|
1743
1743
|
result
|
1744
1744
|
end
|
@@ -1746,7 +1746,7 @@ module_eval(<<'.,.,', 'parser.y', 350)
|
|
1746
1746
|
|
1747
1747
|
module_eval(<<'.,.,', 'parser.y', 355)
|
1748
1748
|
def _reduce_149(val, _values, result)
|
1749
|
-
|
1749
|
+
result = make_node(:ObjectTypeDefinition, name: val[2], interfaces: val[3], directives: val[4], fields: val[6], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1750
1750
|
|
1751
1751
|
result
|
1752
1752
|
end
|
@@ -1754,7 +1754,7 @@ module_eval(<<'.,.,', 'parser.y', 355)
|
|
1754
1754
|
|
1755
1755
|
module_eval(<<'.,.,', 'parser.y', 359)
|
1756
1756
|
def _reduce_150(val, _values, result)
|
1757
|
-
|
1757
|
+
result = EMPTY_ARRAY
|
1758
1758
|
result
|
1759
1759
|
end
|
1760
1760
|
.,.,
|
@@ -1763,28 +1763,28 @@ module_eval(<<'.,.,', 'parser.y', 359)
|
|
1763
1763
|
|
1764
1764
|
module_eval(<<'.,.,', 'parser.y', 363)
|
1765
1765
|
def _reduce_152(val, _values, result)
|
1766
|
-
|
1766
|
+
result = val[2]
|
1767
1767
|
result
|
1768
1768
|
end
|
1769
1769
|
.,.,
|
1770
1770
|
|
1771
1771
|
module_eval(<<'.,.,', 'parser.y', 364)
|
1772
1772
|
def _reduce_153(val, _values, result)
|
1773
|
-
|
1773
|
+
result = val[1]
|
1774
1774
|
result
|
1775
1775
|
end
|
1776
1776
|
.,.,
|
1777
1777
|
|
1778
1778
|
module_eval(<<'.,.,', 'parser.y', 365)
|
1779
1779
|
def _reduce_154(val, _values, result)
|
1780
|
-
|
1780
|
+
result = val[1]
|
1781
1781
|
result
|
1782
1782
|
end
|
1783
1783
|
.,.,
|
1784
1784
|
|
1785
1785
|
module_eval(<<'.,.,', 'parser.y', 368)
|
1786
1786
|
def _reduce_155(val, _values, result)
|
1787
|
-
|
1787
|
+
result = [make_node(:TypeName, name: val[0], position_source: val[0])]
|
1788
1788
|
result
|
1789
1789
|
end
|
1790
1790
|
.,.,
|
@@ -1798,7 +1798,7 @@ module_eval(<<'.,.,', 'parser.y', 369)
|
|
1798
1798
|
|
1799
1799
|
module_eval(<<'.,.,', 'parser.y', 372)
|
1800
1800
|
def _reduce_157(val, _values, result)
|
1801
|
-
|
1801
|
+
result = [make_node(:TypeName, name: val[0], position_source: val[0])]
|
1802
1802
|
result
|
1803
1803
|
end
|
1804
1804
|
.,.,
|
@@ -1812,7 +1812,7 @@ module_eval(<<'.,.,', 'parser.y', 373)
|
|
1812
1812
|
|
1813
1813
|
module_eval(<<'.,.,', 'parser.y', 377)
|
1814
1814
|
def _reduce_159(val, _values, result)
|
1815
|
-
|
1815
|
+
result = make_node(:InputValueDefinition, name: val[1], type: val[3], default_value: val[4], directives: val[5], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1816
1816
|
|
1817
1817
|
result
|
1818
1818
|
end
|
@@ -1820,7 +1820,7 @@ module_eval(<<'.,.,', 'parser.y', 377)
|
|
1820
1820
|
|
1821
1821
|
module_eval(<<'.,.,', 'parser.y', 381)
|
1822
1822
|
def _reduce_160(val, _values, result)
|
1823
|
-
|
1823
|
+
result = [val[0]]
|
1824
1824
|
result
|
1825
1825
|
end
|
1826
1826
|
.,.,
|
@@ -1834,21 +1834,21 @@ module_eval(<<'.,.,', 'parser.y', 382)
|
|
1834
1834
|
|
1835
1835
|
module_eval(<<'.,.,', 'parser.y', 385)
|
1836
1836
|
def _reduce_162(val, _values, result)
|
1837
|
-
|
1837
|
+
result = EMPTY_ARRAY
|
1838
1838
|
result
|
1839
1839
|
end
|
1840
1840
|
.,.,
|
1841
1841
|
|
1842
1842
|
module_eval(<<'.,.,', 'parser.y', 386)
|
1843
1843
|
def _reduce_163(val, _values, result)
|
1844
|
-
|
1844
|
+
result = val[1]
|
1845
1845
|
result
|
1846
1846
|
end
|
1847
1847
|
.,.,
|
1848
1848
|
|
1849
1849
|
module_eval(<<'.,.,', 'parser.y', 390)
|
1850
1850
|
def _reduce_164(val, _values, result)
|
1851
|
-
|
1851
|
+
result = make_node(:FieldDefinition, name: val[1], arguments: val[2], type: val[4], directives: val[5], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1852
1852
|
|
1853
1853
|
result
|
1854
1854
|
end
|
@@ -1856,14 +1856,14 @@ module_eval(<<'.,.,', 'parser.y', 390)
|
|
1856
1856
|
|
1857
1857
|
module_eval(<<'.,.,', 'parser.y', 394)
|
1858
1858
|
def _reduce_165(val, _values, result)
|
1859
|
-
|
1859
|
+
result = EMPTY_ARRAY
|
1860
1860
|
result
|
1861
1861
|
end
|
1862
1862
|
.,.,
|
1863
1863
|
|
1864
1864
|
module_eval(<<'.,.,', 'parser.y', 395)
|
1865
1865
|
def _reduce_166(val, _values, result)
|
1866
|
-
|
1866
|
+
result = [val[0]]
|
1867
1867
|
result
|
1868
1868
|
end
|
1869
1869
|
.,.,
|
@@ -1877,7 +1877,7 @@ module_eval(<<'.,.,', 'parser.y', 396)
|
|
1877
1877
|
|
1878
1878
|
module_eval(<<'.,.,', 'parser.y', 400)
|
1879
1879
|
def _reduce_168(val, _values, result)
|
1880
|
-
|
1880
|
+
result = make_node(:InterfaceTypeDefinition, name: val[2], directives: val[3], fields: val[5], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1881
1881
|
|
1882
1882
|
result
|
1883
1883
|
end
|
@@ -1885,7 +1885,7 @@ module_eval(<<'.,.,', 'parser.y', 400)
|
|
1885
1885
|
|
1886
1886
|
module_eval(<<'.,.,', 'parser.y', 404)
|
1887
1887
|
def _reduce_169(val, _values, result)
|
1888
|
-
|
1888
|
+
result = [make_node(:TypeName, name: val[0], position_source: val[0])]
|
1889
1889
|
result
|
1890
1890
|
end
|
1891
1891
|
.,.,
|
@@ -1899,7 +1899,7 @@ module_eval(<<'.,.,', 'parser.y', 405)
|
|
1899
1899
|
|
1900
1900
|
module_eval(<<'.,.,', 'parser.y', 409)
|
1901
1901
|
def _reduce_171(val, _values, result)
|
1902
|
-
|
1902
|
+
result = make_node(:UnionTypeDefinition, name: val[2], directives: val[3], types: val[5], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1903
1903
|
|
1904
1904
|
result
|
1905
1905
|
end
|
@@ -1907,7 +1907,7 @@ module_eval(<<'.,.,', 'parser.y', 409)
|
|
1907
1907
|
|
1908
1908
|
module_eval(<<'.,.,', 'parser.y', 414)
|
1909
1909
|
def _reduce_172(val, _values, result)
|
1910
|
-
|
1910
|
+
result = make_node(:EnumTypeDefinition, name: val[2], directives: val[3], values: val[5], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1911
1911
|
|
1912
1912
|
result
|
1913
1913
|
end
|
@@ -1915,7 +1915,7 @@ module_eval(<<'.,.,', 'parser.y', 414)
|
|
1915
1915
|
|
1916
1916
|
module_eval(<<'.,.,', 'parser.y', 419)
|
1917
1917
|
def _reduce_173(val, _values, result)
|
1918
|
-
|
1918
|
+
result = make_node(:InputObjectTypeDefinition, name: val[2], directives: val[3], fields: val[5], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1919
1919
|
|
1920
1920
|
result
|
1921
1921
|
end
|
@@ -1923,7 +1923,7 @@ module_eval(<<'.,.,', 'parser.y', 419)
|
|
1923
1923
|
|
1924
1924
|
module_eval(<<'.,.,', 'parser.y', 424)
|
1925
1925
|
def _reduce_174(val, _values, result)
|
1926
|
-
|
1926
|
+
result = make_node(:DirectiveDefinition, name: val[3], arguments: val[4], locations: val[6], description: val[0] || get_description(val[1]), definition_line: val[1].line, position_source: val[0] || val[1])
|
1927
1927
|
|
1928
1928
|
result
|
1929
1929
|
end
|
@@ -1931,7 +1931,7 @@ module_eval(<<'.,.,', 'parser.y', 424)
|
|
1931
1931
|
|
1932
1932
|
module_eval(<<'.,.,', 'parser.y', 428)
|
1933
1933
|
def _reduce_175(val, _values, result)
|
1934
|
-
|
1934
|
+
result = [make_node(:DirectiveLocation, name: val[0].to_s, position_source: val[0])]
|
1935
1935
|
result
|
1936
1936
|
end
|
1937
1937
|
.,.,
|