Skip to content

Commit 6b78878

Browse files
committed
Add support for descriptions on executable definitions (graphql/graphql-spec#1170)
1 parent 9548ef4 commit 6b78878

8 files changed

+84
-34
lines changed

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/GraphQLParser.java

Lines changed: 51 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/psi/GraphQLFragmentDefinition.java

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/psi/GraphQLTypedOperationDefinition.java

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/psi/GraphQLVariableDefinition.java

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/psi/impl/GraphQLFragmentDefinitionImpl.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/psi/impl/GraphQLTypedOperationDefinitionImpl.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/gen/com/intellij/lang/jsgraphql/psi/impl/GraphQLVariableDefinitionImpl.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsgraphql/src/main/grammars/GraphQLParser.bnf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ selectionSetOperationDefinition ::= selectionSet {
208208
mixin="com.intellij.lang.jsgraphql.psi.impl.GraphQLSelectionSetOperationDefinitionMixin"
209209
}
210210

211-
typedOperationDefinition ::= operationType identifier? variableDefinitions? directives? selectionSet {
212-
pin=1
211+
typedOperationDefinition ::= description? operationType identifier? variableDefinitions? directives? selectionSet {
212+
pin=2
213213
extends=operationDefinition
214214
methods=[directives="directive" nameIdentifier="identifier"]
215215
implements="com.intellij.lang.jsgraphql.psi.GraphQLDirectivesAware"
@@ -218,8 +218,8 @@ typedOperationDefinition ::= operationType identifier? variableDefinitions? dire
218218

219219
variableDefinitions ::= '(' variableDefinition+ ')' {pin=1 methods=[variableDefinitions="variableDefinition"]}
220220

221-
variableDefinition ::= variable ':' type defaultValue? directives? {
222-
pin=1
221+
variableDefinition ::= description? variable ':' type defaultValue? directives? {
222+
pin=2
223223
recoverWhile=variableDefinition_recover
224224
methods=[directives="directive"]
225225
implements="com.intellij.lang.jsgraphql.psi.GraphQLDirectivesAware"
@@ -266,8 +266,8 @@ inlineFragment ::= typeCondition? directives? selectionSet {
266266
mixin="com.intellij.lang.jsgraphql.psi.impl.GraphQLInlineFragmentMixin"
267267
}
268268

269-
fragmentDefinition ::= 'fragment' fragmentName typeCondition directives? selectionSet {
270-
pin=1
269+
fragmentDefinition ::= description? 'fragment' fragmentName typeCondition directives? selectionSet {
270+
pin=2
271271
extends=definition
272272
implements="com.intellij.lang.jsgraphql.psi.GraphQLDirectivesAware"
273273
methods=[directives="directive" nameIdentifier="identifier"]

0 commit comments

Comments
 (0)