From bc4901d15a07d60fa40d96ee6f299277af449fc5 Mon Sep 17 00:00:00 2001 From: Matt Mahoney Date: Wed, 29 Aug 2018 18:14:47 -0400 Subject: [PATCH] [RFC] Allow directives on variable definitions Redo of #486. Will wait discussion at the next WG meeting. --- spec/Appendix B -- Grammar Summary.md | 3 ++- spec/Section 2 -- Language.md | 2 +- spec/Section 3 -- Type System.md | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/Appendix B -- Grammar Summary.md b/spec/Appendix B -- Grammar Summary.md index a1783c3bc..6299a7718 100644 --- a/spec/Appendix B -- Grammar Summary.md +++ b/spec/Appendix B -- Grammar Summary.md @@ -162,7 +162,7 @@ ObjectField[Const] : Name : Value[?Const] VariableDefinitions : ( VariableDefinition+ ) -VariableDefinition : Variable : Type DefaultValue? +VariableDefinition : Variable : Type DefaultValue? Directives[Const]? Variable : $ Name @@ -296,6 +296,7 @@ ExecutableDirectiveLocation : one of `FRAGMENT_DEFINITION` `FRAGMENT_SPREAD` `INLINE_FRAGMENT` + `VARIABLE_DEFINITION` TypeSystemDirectiveLocation : one of `SCHEMA` diff --git a/spec/Section 2 -- Language.md b/spec/Section 2 -- Language.md index 012f19b08..01125d618 100644 --- a/spec/Section 2 -- Language.md +++ b/spec/Section 2 -- Language.md @@ -986,7 +986,7 @@ Variable : $ Name VariableDefinitions : ( VariableDefinition+ ) -VariableDefinition : Variable : Type DefaultValue? +VariableDefinition : Variable : Type DefaultValue? Directives[Const]? DefaultValue : = Value[Const] diff --git a/spec/Section 3 -- Type System.md b/spec/Section 3 -- Type System.md index 00bbb8e49..1790dc004 100644 --- a/spec/Section 3 -- Type System.md +++ b/spec/Section 3 -- Type System.md @@ -1624,6 +1624,7 @@ ExecutableDirectiveLocation : one of `FRAGMENT_DEFINITION` `FRAGMENT_SPREAD` `INLINE_FRAGMENT` + `VARIABLE_DEFINITION` TypeSystemDirectiveLocation : one of `SCHEMA`