Skip to content

Commit 49eeef0

Browse files
committed
directives
1 parent 56ea2eb commit 49eeef0

12 files changed

Lines changed: 195 additions & 82 deletions

File tree

‎src/main/grammar/Graphql.g4‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ objectFieldWithVariable : NAME ':' valueWithVariable;
9595

9696
directives : directive+;
9797

98-
directive :'@' NAME | '@' NAME ':' value;
98+
directive :'@' NAME | '@' NAME ':' valueWithVariable;
9999

100100
// Types
101101

@@ -132,3 +132,4 @@ StringValue: '\"' StringCharacter+ '\"';
132132
StringCharacter: [a-zA-Z0-9];
133133

134134
WS : [ \t\r\n]+ -> skip ;
135+
COMMA : ','+ -> skip ;

‎src/main/java/graphql/language/Directive.java‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,56 @@
44
public class Directive {
55
private String name;
66
private Value value;
7+
8+
public Directive() {
9+
10+
}
11+
12+
public Directive(String name, Value value) {
13+
this.name = name;
14+
this.value = value;
15+
}
16+
17+
public String getName() {
18+
return name;
19+
}
20+
21+
public void setName(String name) {
22+
this.name = name;
23+
}
24+
25+
public Value getValue() {
26+
return value;
27+
}
28+
29+
public void setValue(Value value) {
30+
this.value = value;
31+
}
32+
33+
@Override
34+
public boolean equals(Object o) {
35+
if (this == o) return true;
36+
if (o == null || getClass() != o.getClass()) return false;
37+
38+
Directive directive = (Directive) o;
39+
40+
if (name != null ? !name.equals(directive.name) : directive.name != null) return false;
41+
return !(value != null ? !value.equals(directive.value) : directive.value != null);
42+
43+
}
44+
45+
@Override
46+
public int hashCode() {
47+
int result = name != null ? name.hashCode() : 0;
48+
result = 31 * result + (value != null ? value.hashCode() : 0);
49+
return result;
50+
}
51+
52+
@Override
53+
public String toString() {
54+
return "Directive{" +
55+
"name='" + name + '\'' +
56+
", value=" + value +
57+
'}';
58+
}
759
}

‎src/main/java/graphql/language/Field.java‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Field implements Selection {
1010
private String alias;
1111

1212
private List<Argument> arguments = new ArrayList<>();
13-
private List<Directive> directives;
13+
private List<Directive> directives = new ArrayList<>();
1414
private SelectionSet selectionSet;
1515

1616
public Field() {
@@ -32,6 +32,12 @@ public Field(String name, List<Argument> arguments) {
3232
this.arguments = arguments;
3333
}
3434

35+
public Field(String name, List<Argument> arguments, List<Directive> directives) {
36+
this.name = name;
37+
this.arguments = arguments;
38+
this.directives = directives;
39+
}
40+
3541
public Field(String name, List<Argument> arguments, SelectionSet selectionSet) {
3642
this.name = name;
3743
this.arguments = arguments;

‎src/main/java/graphql/language/FragmentSpread.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package graphql.language;
22

33

4+
import java.util.ArrayList;
45
import java.util.List;
56

67
public class FragmentSpread implements Selection {
78

89
private String name;
9-
private List<Directive> directives;
10+
private List<Directive> directives = new ArrayList<>();
1011

1112
public FragmentSpread() {
1213
}

‎src/main/java/graphql/language/GraphQLType.java‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎src/main/java/graphql/language/InlineFragment.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package graphql.language;
22

33

4+
import java.util.ArrayList;
45
import java.util.List;
56

67
public class InlineFragment implements Selection {
78
private String typeCondition;
8-
private List<Directive> directives;
9+
private List<Directive> directives = new ArrayList<>();
910
private SelectionSet selectionSet;
1011

1112
public InlineFragment() {

‎src/main/java/graphql/parser/GraphqlAntlrToLanguage.java‎

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ private enum ContextProperty {
1818
FragmentDefinition,
1919
Field,
2020
InlineFragment,
21+
FragmentSpread,
2122
SelectionSet,
2223
VariableDefinition,
23-
Argument
2424
}
2525

2626
static class ContextEntry {
@@ -130,7 +130,10 @@ private OperationDefinition.Operation parseOperation(GraphqlParser.OperationType
130130
public Void visitFragmentSpread(@NotNull GraphqlParser.FragmentSpreadContext ctx) {
131131
FragmentSpread fragmentSpread = new FragmentSpread(ctx.fragmentName().getText());
132132
((SelectionSet) getFromContextStack(ContextProperty.SelectionSet)).getSelections().add(fragmentSpread);
133-
return super.visitFragmentSpread(ctx);
133+
addContextProperty(ContextProperty.FragmentSpread,fragmentSpread);
134+
super.visitFragmentSpread(ctx);
135+
popContext();
136+
return null;
134137
}
135138

136139
@Override
@@ -213,6 +216,28 @@ public Void visitInlineFragment(@NotNull GraphqlParser.InlineFragmentContext ctx
213216
return null;
214217
}
215218

219+
@Override
220+
public Void visitDirective(@NotNull GraphqlParser.DirectiveContext ctx) {
221+
Directive directive = new Directive(ctx.NAME().getText(),getValue(ctx.valueWithVariable()));
222+
for(ContextEntry contextEntry: contextStack){
223+
if(contextEntry.contextProperty == ContextProperty.Field){
224+
((Field) contextEntry.value).getDirectives().add(directive);
225+
break;
226+
}else if(contextEntry.contextProperty == ContextProperty.FragmentDefinition){
227+
((Field) contextEntry.value).getDirectives().add(directive);
228+
break;
229+
}else if(contextEntry.contextProperty == ContextProperty.FragmentSpread){
230+
((FragmentSpread) contextEntry.value).getDirectives().add(directive);
231+
break;
232+
}else if(contextEntry.contextProperty == ContextProperty.InlineFragment){
233+
((InlineFragment) contextEntry.value).getDirectives().add(directive);
234+
break;
235+
}
236+
}
237+
238+
return super.visitDirective(ctx);
239+
}
240+
216241
private Value getValue(GraphqlParser.ValueWithVariableContext ctx) {
217242
if (ctx.IntValue() != null) {
218243
IntValue intValue = new IntValue(Integer.parseInt(ctx.IntValue().getText()));
@@ -243,7 +268,7 @@ private Value getValue(GraphqlParser.ValueWithVariableContext ctx) {
243268
}
244269
return objectValue;
245270
} else if (ctx.variable() != null) {
246-
VariableReference variableReference = new VariableReference(ctx.variable().getText());
271+
VariableReference variableReference = new VariableReference(ctx.variable().NAME().getText());
247272
return variableReference;
248273
}
249274
throw new RuntimeException();

‎src/main/java/graphql/parser/antlr/Graphql.tokens‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Digit=25
2626
StringValue=26
2727
StringCharacter=27
2828
WS=28
29+
COMMA=29
2930
'query'=1
3031
'mutation'=2
3132
'('=3

‎src/main/java/graphql/parser/antlr/GraphqlLexer.java‎

Lines changed: 65 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public class GraphqlLexer extends Lexer {
2020
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
2121
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, BooleanValue=17,
2222
NAME=18, IntValue=19, FloatValue=20, Sign=21, IntegerPart=22, NonZeroDigit=23,
23-
ExponentPart=24, Digit=25, StringValue=26, StringCharacter=27, WS=28;
23+
ExponentPart=24, Digit=25, StringValue=26, StringCharacter=27, WS=28,
24+
COMMA=29;
2425
public static String[] modeNames = {
2526
"DEFAULT_MODE"
2627
};
@@ -29,7 +30,7 @@ public class GraphqlLexer extends Lexer {
2930
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
3031
"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "BooleanValue",
3132
"NAME", "IntValue", "FloatValue", "Sign", "IntegerPart", "NonZeroDigit",
32-
"ExponentPart", "Digit", "StringValue", "StringCharacter", "WS"
33+
"ExponentPart", "Digit", "StringValue", "StringCharacter", "WS", "COMMA"
3334
};
3435

3536
private static final String[] _LITERAL_NAMES = {
@@ -41,7 +42,7 @@ public class GraphqlLexer extends Lexer {
4142
null, null, null, null, null, null, null, null, null, null, null, null,
4243
null, null, null, null, null, "BooleanValue", "NAME", "IntValue", "FloatValue",
4344
"Sign", "IntegerPart", "NonZeroDigit", "ExponentPart", "Digit", "StringValue",
44-
"StringCharacter", "WS"
45+
"StringCharacter", "WS", "COMMA"
4546
};
4647
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
4748

@@ -98,66 +99,70 @@ public GraphqlLexer(CharStream input) {
9899
public ATN getATN() { return _ATN; }
99100

100101
public static final String _serializedATN =
101-
"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2\36\u00be\b\1\4\2"+
102+
"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2\37\u00c7\b\1\4\2"+
102103
"\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4"+
103104
"\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22"+
104105
"\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31"+
105-
"\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\3\2\3\2\3\2\3\2\3\2\3\2"+
106-
"\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3"+
107-
"\b\3\b\3\t\3\t\3\n\3\n\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\r\3\r\3\r\3\r"+
108-
"\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\17\3\17\3\20\3\20\3\21\3\21\3\22\3\22"+
109-
"\3\22\3\22\3\22\3\22\3\22\3\22\3\22\5\22z\n\22\3\23\3\23\7\23~\n\23\f"+
110-
"\23\16\23\u0081\13\23\3\24\5\24\u0084\n\24\3\24\3\24\3\25\5\25\u0089\n"+
111-
"\25\3\25\3\25\3\25\6\25\u008e\n\25\r\25\16\25\u008f\3\25\5\25\u0093\n"+
112-
"\25\3\26\3\26\3\27\3\27\3\27\3\27\6\27\u009b\n\27\r\27\16\27\u009c\5\27"+
113-
"\u009f\n\27\3\30\3\30\3\31\3\31\5\31\u00a5\n\31\3\31\6\31\u00a8\n\31\r"+
114-
"\31\16\31\u00a9\3\32\3\32\3\33\3\33\6\33\u00b0\n\33\r\33\16\33\u00b1\3"+
115-
"\33\3\33\3\34\3\34\3\35\6\35\u00b9\n\35\r\35\16\35\u00ba\3\35\3\35\2\2"+
116-
"\36\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35"+
117-
"\20\37\21!\22#\23%\24\'\25)\26+\27-\30/\31\61\32\63\33\65\34\67\359\36"+
118-
"\3\2\6\5\2C\\aac|\6\2\62;C\\aac|\5\2\62;C\\c|\5\2\13\f\17\17\"\"\u00ca"+
119-
"\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2"+
120-
"\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2"+
121-
"\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2"+
122-
"\2\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2"+
123-
"\2\2\61\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\3;\3"+
124-
"\2\2\2\5A\3\2\2\2\7J\3\2\2\2\tL\3\2\2\2\13N\3\2\2\2\rP\3\2\2\2\17R\3\2"+
125-
"\2\2\21T\3\2\2\2\23V\3\2\2\2\25X\3\2\2\2\27\\\3\2\2\2\31_\3\2\2\2\33h"+
126-
"\3\2\2\2\35j\3\2\2\2\37l\3\2\2\2!n\3\2\2\2#y\3\2\2\2%{\3\2\2\2\'\u0083"+
127-
"\3\2\2\2)\u0088\3\2\2\2+\u0094\3\2\2\2-\u009e\3\2\2\2/\u00a0\3\2\2\2\61"+
128-
"\u00a2\3\2\2\2\63\u00ab\3\2\2\2\65\u00ad\3\2\2\2\67\u00b5\3\2\2\29\u00b8"+
129-
"\3\2\2\2;<\7s\2\2<=\7w\2\2=>\7g\2\2>?\7t\2\2?@\7{\2\2@\4\3\2\2\2AB\7o"+
130-
"\2\2BC\7w\2\2CD\7v\2\2DE\7c\2\2EF\7v\2\2FG\7k\2\2GH\7q\2\2HI\7p\2\2I\6"+
131-
"\3\2\2\2JK\7*\2\2K\b\3\2\2\2LM\7+\2\2M\n\3\2\2\2NO\7<\2\2O\f\3\2\2\2P"+
132-
"Q\7&\2\2Q\16\3\2\2\2RS\7?\2\2S\20\3\2\2\2TU\7}\2\2U\22\3\2\2\2VW\7\177"+
133-
"\2\2W\24\3\2\2\2XY\7\60\2\2YZ\7\60\2\2Z[\7\60\2\2[\26\3\2\2\2\\]\7q\2"+
134-
"\2]^\7p\2\2^\30\3\2\2\2_`\7h\2\2`a\7t\2\2ab\7c\2\2bc\7i\2\2cd\7o\2\2d"+
135-
"e\7g\2\2ef\7p\2\2fg\7v\2\2g\32\3\2\2\2hi\7]\2\2i\34\3\2\2\2jk\7_\2\2k"+
136-
"\36\3\2\2\2lm\7B\2\2m \3\2\2\2no\7#\2\2o\"\3\2\2\2pq\7v\2\2qr\7t\2\2r"+
137-
"s\7w\2\2sz\7g\2\2tu\7h\2\2uv\7c\2\2vw\7n\2\2wx\7u\2\2xz\7g\2\2yp\3\2\2"+
138-
"\2yt\3\2\2\2z$\3\2\2\2{\177\t\2\2\2|~\t\3\2\2}|\3\2\2\2~\u0081\3\2\2\2"+
139-
"\177}\3\2\2\2\177\u0080\3\2\2\2\u0080&\3\2\2\2\u0081\177\3\2\2\2\u0082"+
140-
"\u0084\5+\26\2\u0083\u0082\3\2\2\2\u0083\u0084\3\2\2\2\u0084\u0085\3\2"+
141-
"\2\2\u0085\u0086\5-\27\2\u0086(\3\2\2\2\u0087\u0089\5+\26\2\u0088\u0087"+
142-
"\3\2\2\2\u0088\u0089\3\2\2\2\u0089\u008a\3\2\2\2\u008a\u008b\5-\27\2\u008b"+
143-
"\u008d\7\60\2\2\u008c\u008e\5\63\32\2\u008d\u008c\3\2\2\2\u008e\u008f"+
144-
"\3\2\2\2\u008f\u008d\3\2\2\2\u008f\u0090\3\2\2\2\u0090\u0092\3\2\2\2\u0091"+
145-
"\u0093\5\61\31\2\u0092\u0091\3\2\2\2\u0092\u0093\3\2\2\2\u0093*\3\2\2"+
146-
"\2\u0094\u0095\7/\2\2\u0095,\3\2\2\2\u0096\u009f\7\62\2\2\u0097\u009f"+
147-
"\5/\30\2\u0098\u009a\5/\30\2\u0099\u009b\5\63\32\2\u009a\u0099\3\2\2\2"+
148-
"\u009b\u009c\3\2\2\2\u009c\u009a\3\2\2\2\u009c\u009d\3\2\2\2\u009d\u009f"+
149-
"\3\2\2\2\u009e\u0096\3\2\2\2\u009e\u0097\3\2\2\2\u009e\u0098\3\2\2\2\u009f"+
150-
".\3\2\2\2\u00a0\u00a1\4\63;\2\u00a1\60\3\2\2\2\u00a2\u00a4\7g\2\2\u00a3"+
151-
"\u00a5\5+\26\2\u00a4\u00a3\3\2\2\2\u00a4\u00a5\3\2\2\2\u00a5\u00a7\3\2"+
152-
"\2\2\u00a6\u00a8\5\63\32\2\u00a7\u00a6\3\2\2\2\u00a8\u00a9\3\2\2\2\u00a9"+
153-
"\u00a7\3\2\2\2\u00a9\u00aa\3\2\2\2\u00aa\62\3\2\2\2\u00ab\u00ac\4\62;"+
154-
"\2\u00ac\64\3\2\2\2\u00ad\u00af\7$\2\2\u00ae\u00b0\5\67\34\2\u00af\u00ae"+
155-
"\3\2\2\2\u00b0\u00b1\3\2\2\2\u00b1\u00af\3\2\2\2\u00b1\u00b2\3\2\2\2\u00b2"+
156-
"\u00b3\3\2\2\2\u00b3\u00b4\7$\2\2\u00b4\66\3\2\2\2\u00b5\u00b6\t\4\2\2"+
157-
"\u00b68\3\2\2\2\u00b7\u00b9\t\5\2\2\u00b8\u00b7\3\2\2\2\u00b9\u00ba\3"+
158-
"\2\2\2\u00ba\u00b8\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00bc\3\2\2\2\u00bc"+
159-
"\u00bd\b\35\2\2\u00bd:\3\2\2\2\17\2y\177\u0083\u0088\u008f\u0092\u009c"+
160-
"\u009e\u00a4\u00a9\u00b1\u00ba\3\b\2\2";
106+
"\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\3\2\3\2\3\2\3"+
107+
"\2\3\2\3\2\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6"+
108+
"\3\7\3\7\3\b\3\b\3\t\3\t\3\n\3\n\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\r\3"+
109+
"\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\17\3\17\3\20\3\20\3\21\3\21"+
110+
"\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\5\22|\n\22\3\23\3\23\7\23"+
111+
"\u0080\n\23\f\23\16\23\u0083\13\23\3\24\5\24\u0086\n\24\3\24\3\24\3\25"+
112+
"\5\25\u008b\n\25\3\25\3\25\3\25\6\25\u0090\n\25\r\25\16\25\u0091\3\25"+
113+
"\5\25\u0095\n\25\3\26\3\26\3\27\3\27\3\27\3\27\6\27\u009d\n\27\r\27\16"+
114+
"\27\u009e\5\27\u00a1\n\27\3\30\3\30\3\31\3\31\5\31\u00a7\n\31\3\31\6\31"+
115+
"\u00aa\n\31\r\31\16\31\u00ab\3\32\3\32\3\33\3\33\6\33\u00b2\n\33\r\33"+
116+
"\16\33\u00b3\3\33\3\33\3\34\3\34\3\35\6\35\u00bb\n\35\r\35\16\35\u00bc"+
117+
"\3\35\3\35\3\36\6\36\u00c2\n\36\r\36\16\36\u00c3\3\36\3\36\2\2\37\3\3"+
118+
"\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21"+
119+
"!\22#\23%\24\'\25)\26+\27-\30/\31\61\32\63\33\65\34\67\359\36;\37\3\2"+
120+
"\6\5\2C\\aac|\6\2\62;C\\aac|\5\2\62;C\\c|\5\2\13\f\17\17\"\"\u00d4\2\3"+
121+
"\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2"+
122+
"\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31"+
123+
"\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2"+
124+
"\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2\2"+
125+
"\61\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3\2\2"+
126+
"\2\3=\3\2\2\2\5C\3\2\2\2\7L\3\2\2\2\tN\3\2\2\2\13P\3\2\2\2\rR\3\2\2\2"+
127+
"\17T\3\2\2\2\21V\3\2\2\2\23X\3\2\2\2\25Z\3\2\2\2\27^\3\2\2\2\31a\3\2\2"+
128+
"\2\33j\3\2\2\2\35l\3\2\2\2\37n\3\2\2\2!p\3\2\2\2#{\3\2\2\2%}\3\2\2\2\'"+
129+
"\u0085\3\2\2\2)\u008a\3\2\2\2+\u0096\3\2\2\2-\u00a0\3\2\2\2/\u00a2\3\2"+
130+
"\2\2\61\u00a4\3\2\2\2\63\u00ad\3\2\2\2\65\u00af\3\2\2\2\67\u00b7\3\2\2"+
131+
"\29\u00ba\3\2\2\2;\u00c1\3\2\2\2=>\7s\2\2>?\7w\2\2?@\7g\2\2@A\7t\2\2A"+
132+
"B\7{\2\2B\4\3\2\2\2CD\7o\2\2DE\7w\2\2EF\7v\2\2FG\7c\2\2GH\7v\2\2HI\7k"+
133+
"\2\2IJ\7q\2\2JK\7p\2\2K\6\3\2\2\2LM\7*\2\2M\b\3\2\2\2NO\7+\2\2O\n\3\2"+
134+
"\2\2PQ\7<\2\2Q\f\3\2\2\2RS\7&\2\2S\16\3\2\2\2TU\7?\2\2U\20\3\2\2\2VW\7"+
135+
"}\2\2W\22\3\2\2\2XY\7\177\2\2Y\24\3\2\2\2Z[\7\60\2\2[\\\7\60\2\2\\]\7"+
136+
"\60\2\2]\26\3\2\2\2^_\7q\2\2_`\7p\2\2`\30\3\2\2\2ab\7h\2\2bc\7t\2\2cd"+
137+
"\7c\2\2de\7i\2\2ef\7o\2\2fg\7g\2\2gh\7p\2\2hi\7v\2\2i\32\3\2\2\2jk\7]"+
138+
"\2\2k\34\3\2\2\2lm\7_\2\2m\36\3\2\2\2no\7B\2\2o \3\2\2\2pq\7#\2\2q\"\3"+
139+
"\2\2\2rs\7v\2\2st\7t\2\2tu\7w\2\2u|\7g\2\2vw\7h\2\2wx\7c\2\2xy\7n\2\2"+
140+
"yz\7u\2\2z|\7g\2\2{r\3\2\2\2{v\3\2\2\2|$\3\2\2\2}\u0081\t\2\2\2~\u0080"+
141+
"\t\3\2\2\177~\3\2\2\2\u0080\u0083\3\2\2\2\u0081\177\3\2\2\2\u0081\u0082"+
142+
"\3\2\2\2\u0082&\3\2\2\2\u0083\u0081\3\2\2\2\u0084\u0086\5+\26\2\u0085"+
143+
"\u0084\3\2\2\2\u0085\u0086\3\2\2\2\u0086\u0087\3\2\2\2\u0087\u0088\5-"+
144+
"\27\2\u0088(\3\2\2\2\u0089\u008b\5+\26\2\u008a\u0089\3\2\2\2\u008a\u008b"+
145+
"\3\2\2\2\u008b\u008c\3\2\2\2\u008c\u008d\5-\27\2\u008d\u008f\7\60\2\2"+
146+
"\u008e\u0090\5\63\32\2\u008f\u008e\3\2\2\2\u0090\u0091\3\2\2\2\u0091\u008f"+
147+
"\3\2\2\2\u0091\u0092\3\2\2\2\u0092\u0094\3\2\2\2\u0093\u0095\5\61\31\2"+
148+
"\u0094\u0093\3\2\2\2\u0094\u0095\3\2\2\2\u0095*\3\2\2\2\u0096\u0097\7"+
149+
"/\2\2\u0097,\3\2\2\2\u0098\u00a1\7\62\2\2\u0099\u00a1\5/\30\2\u009a\u009c"+
150+
"\5/\30\2\u009b\u009d\5\63\32\2\u009c\u009b\3\2\2\2\u009d\u009e\3\2\2\2"+
151+
"\u009e\u009c\3\2\2\2\u009e\u009f\3\2\2\2\u009f\u00a1\3\2\2\2\u00a0\u0098"+
152+
"\3\2\2\2\u00a0\u0099\3\2\2\2\u00a0\u009a\3\2\2\2\u00a1.\3\2\2\2\u00a2"+
153+
"\u00a3\4\63;\2\u00a3\60\3\2\2\2\u00a4\u00a6\7g\2\2\u00a5\u00a7\5+\26\2"+
154+
"\u00a6\u00a5\3\2\2\2\u00a6\u00a7\3\2\2\2\u00a7\u00a9\3\2\2\2\u00a8\u00aa"+
155+
"\5\63\32\2\u00a9\u00a8\3\2\2\2\u00aa\u00ab\3\2\2\2\u00ab\u00a9\3\2\2\2"+
156+
"\u00ab\u00ac\3\2\2\2\u00ac\62\3\2\2\2\u00ad\u00ae\4\62;\2\u00ae\64\3\2"+
157+
"\2\2\u00af\u00b1\7$\2\2\u00b0\u00b2\5\67\34\2\u00b1\u00b0\3\2\2\2\u00b2"+
158+
"\u00b3\3\2\2\2\u00b3\u00b1\3\2\2\2\u00b3\u00b4\3\2\2\2\u00b4\u00b5\3\2"+
159+
"\2\2\u00b5\u00b6\7$\2\2\u00b6\66\3\2\2\2\u00b7\u00b8\t\4\2\2\u00b88\3"+
160+
"\2\2\2\u00b9\u00bb\t\5\2\2\u00ba\u00b9\3\2\2\2\u00bb\u00bc\3\2\2\2\u00bc"+
161+
"\u00ba\3\2\2\2\u00bc\u00bd\3\2\2\2\u00bd\u00be\3\2\2\2\u00be\u00bf\b\35"+
162+
"\2\2\u00bf:\3\2\2\2\u00c0\u00c2\7.\2\2\u00c1\u00c0\3\2\2\2\u00c2\u00c3"+
163+
"\3\2\2\2\u00c3\u00c1\3\2\2\2\u00c3\u00c4\3\2\2\2\u00c4\u00c5\3\2\2\2\u00c5"+
164+
"\u00c6\b\36\2\2\u00c6<\3\2\2\2\20\2{\u0081\u0085\u008a\u0091\u0094\u009e"+
165+
"\u00a0\u00a6\u00ab\u00b3\u00bc\u00c3\3\b\2\2";
161166
public static final ATN _ATN =
162167
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
163168
static {

‎src/main/java/graphql/parser/antlr/GraphqlLexer.tokens‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Digit=25
2626
StringValue=26
2727
StringCharacter=27
2828
WS=28
29+
COMMA=29
2930
'query'=1
3031
'mutation'=2
3132
'('=3

0 commit comments

Comments
 (0)