Skip to content

Commit d1cfd96

Browse files
committed
Move a few shared selectors back to ast_selector
1 parent 3b42b42 commit d1cfd96

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/GraphQLTree.cpp

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,23 @@ struct ast_selector<enum_value> : std::true_type
253253
{
254254
};
255255

256+
template <>
257+
struct ast_selector<field_name> : std::true_type
258+
{
259+
};
260+
256261
template <>
257262
struct ast_selector<argument_name> : std::true_type
258263
{
259264
};
260265

261266
template <>
262-
struct ast_selector<named_type> : std::true_type
267+
struct ast_selector<argument> : std::true_type
268+
{
269+
};
270+
271+
template <>
272+
struct ast_selector<arguments> : std::true_type
263273
{
264274
};
265275

@@ -268,6 +278,16 @@ struct ast_selector<directive_name> : std::true_type
268278
{
269279
};
270280

281+
template <>
282+
struct ast_selector<directive> : std::true_type
283+
{
284+
};
285+
286+
template <>
287+
struct ast_selector<directives> : std::true_type
288+
{
289+
};
290+
271291
template <>
272292
struct ast_selector<variable> : std::true_type
273293
{
@@ -278,6 +298,11 @@ struct ast_selector<scalar_name> : std::true_type
278298
{
279299
};
280300

301+
template <>
302+
struct ast_selector<named_type> : std::true_type
303+
{
304+
};
305+
281306
template <>
282307
struct ast_selector<list_type> : std::true_type
283308
{
@@ -473,11 +498,6 @@ struct executable_selector<alias> : parse_tree::fold_one
473498
{
474499
};
475500

476-
template <>
477-
struct executable_selector<field_name> : std::true_type
478-
{
479-
};
480-
481501
template <>
482502
struct executable_selector<operation_name> : std::true_type
483503
{
@@ -488,26 +508,6 @@ struct executable_selector<fragment_name> : std::true_type
488508
{
489509
};
490510

491-
template <>
492-
struct executable_selector<argument> : std::true_type
493-
{
494-
};
495-
496-
template <>
497-
struct executable_selector<arguments> : std::true_type
498-
{
499-
};
500-
501-
template <>
502-
struct executable_selector<directive> : std::true_type
503-
{
504-
};
505-
506-
template <>
507-
struct executable_selector<directives> : std::true_type
508-
{
509-
};
510-
511511
template <>
512512
struct executable_selector<field> : std::true_type
513513
{

0 commit comments

Comments
 (0)