Skip to content

Commit adc0083

Browse files
committed
update org.antlr/antlr4-runtime
1 parent 937a91d commit adc0083

16 files changed

Lines changed: 1867 additions & 369 deletions

.claude/settings.local.json

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

codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x
44

55
pip install antlr4-tools
66

7-
export ANTLR4_TOOLS_ANTLR_VERSION=4.13.1
7+
export ANTLR4_TOOLS_ANTLR_VERSION=4.13.2
88

99
PACKAGE_NAME=com.walmartlabs.lacinia
1010
DIR=$(echo $PACKAGE_NAME | tr . /)

deps.edn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{:deps {org.clojure/clojure {:mvn/version "1.11.1"}
2-
com.walmartlabs/lacinia-parser {:local/root "./gen"}
3-
org.antlr/antlr4-runtime {:mvn/version "4.13.1"}
2+
org.antlr/antlr4-runtime {:mvn/version "4.13.2"}
43
org.flatland/ordered {:mvn/version "1.15.12"}
54
org.clojure/data.json {:mvn/version "2.5.1"}}
65
:paths ["src" "resources" "target/classes"]

java/com/walmartlabs/lacinia/GraphqlBaseListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.1
1+
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.2
22
package com.walmartlabs.lacinia;
33

44
import org.antlr.v4.runtime.ParserRuleContext;
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.2
2+
package com.walmartlabs.lacinia;
3+
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
4+
5+
/**
6+
* This class provides an empty implementation of {@link GraphqlVisitor},
7+
* which can be extended to create a visitor which only needs to handle a subset
8+
* of the available methods.
9+
*
10+
* @param <T> The return type of the visit operation. Use {@link Void} for
11+
* operations with no return type.
12+
*/
13+
@SuppressWarnings("CheckReturnValue")
14+
public class GraphqlBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements GraphqlVisitor<T> {
15+
/**
16+
* {@inheritDoc}
17+
*
18+
* <p>The default implementation returns the result of calling
19+
* {@link #visitChildren} on {@code ctx}.</p>
20+
*/
21+
@Override public T visitDocument(GraphqlParser.DocumentContext ctx) { return visitChildren(ctx); }
22+
/**
23+
* {@inheritDoc}
24+
*
25+
* <p>The default implementation returns the result of calling
26+
* {@link #visitChildren} on {@code ctx}.</p>
27+
*/
28+
@Override public T visitDefinition(GraphqlParser.DefinitionContext ctx) { return visitChildren(ctx); }
29+
/**
30+
* {@inheritDoc}
31+
*
32+
* <p>The default implementation returns the result of calling
33+
* {@link #visitChildren} on {@code ctx}.</p>
34+
*/
35+
@Override public T visitOperationDefinition(GraphqlParser.OperationDefinitionContext ctx) { return visitChildren(ctx); }
36+
/**
37+
* {@inheritDoc}
38+
*
39+
* <p>The default implementation returns the result of calling
40+
* {@link #visitChildren} on {@code ctx}.</p>
41+
*/
42+
@Override public T visitName(GraphqlParser.NameContext ctx) { return visitChildren(ctx); }
43+
/**
44+
* {@inheritDoc}
45+
*
46+
* <p>The default implementation returns the result of calling
47+
* {@link #visitChildren} on {@code ctx}.</p>
48+
*/
49+
@Override public T visitOperationType(GraphqlParser.OperationTypeContext ctx) { return visitChildren(ctx); }
50+
/**
51+
* {@inheritDoc}
52+
*
53+
* <p>The default implementation returns the result of calling
54+
* {@link #visitChildren} on {@code ctx}.</p>
55+
*/
56+
@Override public T visitVariableDefinitions(GraphqlParser.VariableDefinitionsContext ctx) { return visitChildren(ctx); }
57+
/**
58+
* {@inheritDoc}
59+
*
60+
* <p>The default implementation returns the result of calling
61+
* {@link #visitChildren} on {@code ctx}.</p>
62+
*/
63+
@Override public T visitVariableDefinition(GraphqlParser.VariableDefinitionContext ctx) { return visitChildren(ctx); }
64+
/**
65+
* {@inheritDoc}
66+
*
67+
* <p>The default implementation returns the result of calling
68+
* {@link #visitChildren} on {@code ctx}.</p>
69+
*/
70+
@Override public T visitVariable(GraphqlParser.VariableContext ctx) { return visitChildren(ctx); }
71+
/**
72+
* {@inheritDoc}
73+
*
74+
* <p>The default implementation returns the result of calling
75+
* {@link #visitChildren} on {@code ctx}.</p>
76+
*/
77+
@Override public T visitDefaultValue(GraphqlParser.DefaultValueContext ctx) { return visitChildren(ctx); }
78+
/**
79+
* {@inheritDoc}
80+
*
81+
* <p>The default implementation returns the result of calling
82+
* {@link #visitChildren} on {@code ctx}.</p>
83+
*/
84+
@Override public T visitSelectionSet(GraphqlParser.SelectionSetContext ctx) { return visitChildren(ctx); }
85+
/**
86+
* {@inheritDoc}
87+
*
88+
* <p>The default implementation returns the result of calling
89+
* {@link #visitChildren} on {@code ctx}.</p>
90+
*/
91+
@Override public T visitSelection(GraphqlParser.SelectionContext ctx) { return visitChildren(ctx); }
92+
/**
93+
* {@inheritDoc}
94+
*
95+
* <p>The default implementation returns the result of calling
96+
* {@link #visitChildren} on {@code ctx}.</p>
97+
*/
98+
@Override public T visitField(GraphqlParser.FieldContext ctx) { return visitChildren(ctx); }
99+
/**
100+
* {@inheritDoc}
101+
*
102+
* <p>The default implementation returns the result of calling
103+
* {@link #visitChildren} on {@code ctx}.</p>
104+
*/
105+
@Override public T visitAlias(GraphqlParser.AliasContext ctx) { return visitChildren(ctx); }
106+
/**
107+
* {@inheritDoc}
108+
*
109+
* <p>The default implementation returns the result of calling
110+
* {@link #visitChildren} on {@code ctx}.</p>
111+
*/
112+
@Override public T visitArguments(GraphqlParser.ArgumentsContext ctx) { return visitChildren(ctx); }
113+
/**
114+
* {@inheritDoc}
115+
*
116+
* <p>The default implementation returns the result of calling
117+
* {@link #visitChildren} on {@code ctx}.</p>
118+
*/
119+
@Override public T visitArgument(GraphqlParser.ArgumentContext ctx) { return visitChildren(ctx); }
120+
/**
121+
* {@inheritDoc}
122+
*
123+
* <p>The default implementation returns the result of calling
124+
* {@link #visitChildren} on {@code ctx}.</p>
125+
*/
126+
@Override public T visitFragmentSpread(GraphqlParser.FragmentSpreadContext ctx) { return visitChildren(ctx); }
127+
/**
128+
* {@inheritDoc}
129+
*
130+
* <p>The default implementation returns the result of calling
131+
* {@link #visitChildren} on {@code ctx}.</p>
132+
*/
133+
@Override public T visitInlineFragment(GraphqlParser.InlineFragmentContext ctx) { return visitChildren(ctx); }
134+
/**
135+
* {@inheritDoc}
136+
*
137+
* <p>The default implementation returns the result of calling
138+
* {@link #visitChildren} on {@code ctx}.</p>
139+
*/
140+
@Override public T visitFragmentDefinition(GraphqlParser.FragmentDefinitionContext ctx) { return visitChildren(ctx); }
141+
/**
142+
* {@inheritDoc}
143+
*
144+
* <p>The default implementation returns the result of calling
145+
* {@link #visitChildren} on {@code ctx}.</p>
146+
*/
147+
@Override public T visitFragmentName(GraphqlParser.FragmentNameContext ctx) { return visitChildren(ctx); }
148+
/**
149+
* {@inheritDoc}
150+
*
151+
* <p>The default implementation returns the result of calling
152+
* {@link #visitChildren} on {@code ctx}.</p>
153+
*/
154+
@Override public T visitTypeCondition(GraphqlParser.TypeConditionContext ctx) { return visitChildren(ctx); }
155+
/**
156+
* {@inheritDoc}
157+
*
158+
* <p>The default implementation returns the result of calling
159+
* {@link #visitChildren} on {@code ctx}.</p>
160+
*/
161+
@Override public T visitValue(GraphqlParser.ValueContext ctx) { return visitChildren(ctx); }
162+
/**
163+
* {@inheritDoc}
164+
*
165+
* <p>The default implementation returns the result of calling
166+
* {@link #visitChildren} on {@code ctx}.</p>
167+
*/
168+
@Override public T visitEnumValue(GraphqlParser.EnumValueContext ctx) { return visitChildren(ctx); }
169+
/**
170+
* {@inheritDoc}
171+
*
172+
* <p>The default implementation returns the result of calling
173+
* {@link #visitChildren} on {@code ctx}.</p>
174+
*/
175+
@Override public T visitArrayValue(GraphqlParser.ArrayValueContext ctx) { return visitChildren(ctx); }
176+
/**
177+
* {@inheritDoc}
178+
*
179+
* <p>The default implementation returns the result of calling
180+
* {@link #visitChildren} on {@code ctx}.</p>
181+
*/
182+
@Override public T visitObjectValue(GraphqlParser.ObjectValueContext ctx) { return visitChildren(ctx); }
183+
/**
184+
* {@inheritDoc}
185+
*
186+
* <p>The default implementation returns the result of calling
187+
* {@link #visitChildren} on {@code ctx}.</p>
188+
*/
189+
@Override public T visitObjectField(GraphqlParser.ObjectFieldContext ctx) { return visitChildren(ctx); }
190+
/**
191+
* {@inheritDoc}
192+
*
193+
* <p>The default implementation returns the result of calling
194+
* {@link #visitChildren} on {@code ctx}.</p>
195+
*/
196+
@Override public T visitDirectives(GraphqlParser.DirectivesContext ctx) { return visitChildren(ctx); }
197+
/**
198+
* {@inheritDoc}
199+
*
200+
* <p>The default implementation returns the result of calling
201+
* {@link #visitChildren} on {@code ctx}.</p>
202+
*/
203+
@Override public T visitDirective(GraphqlParser.DirectiveContext ctx) { return visitChildren(ctx); }
204+
/**
205+
* {@inheritDoc}
206+
*
207+
* <p>The default implementation returns the result of calling
208+
* {@link #visitChildren} on {@code ctx}.</p>
209+
*/
210+
@Override public T visitType(GraphqlParser.TypeContext ctx) { return visitChildren(ctx); }
211+
/**
212+
* {@inheritDoc}
213+
*
214+
* <p>The default implementation returns the result of calling
215+
* {@link #visitChildren} on {@code ctx}.</p>
216+
*/
217+
@Override public T visitTypeName(GraphqlParser.TypeNameContext ctx) { return visitChildren(ctx); }
218+
/**
219+
* {@inheritDoc}
220+
*
221+
* <p>The default implementation returns the result of calling
222+
* {@link #visitChildren} on {@code ctx}.</p>
223+
*/
224+
@Override public T visitListType(GraphqlParser.ListTypeContext ctx) { return visitChildren(ctx); }
225+
/**
226+
* {@inheritDoc}
227+
*
228+
* <p>The default implementation returns the result of calling
229+
* {@link #visitChildren} on {@code ctx}.</p>
230+
*/
231+
@Override public T visitNonNullType(GraphqlParser.NonNullTypeContext ctx) { return visitChildren(ctx); }
232+
}

java/com/walmartlabs/lacinia/GraphqlLexer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.1
1+
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.2
22
package com.walmartlabs.lacinia;
33
import org.antlr.v4.runtime.Lexer;
44
import org.antlr.v4.runtime.CharStream;
@@ -11,7 +11,7 @@
1111

1212
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
1313
public class GraphqlLexer extends Lexer {
14-
static { RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); }
14+
static { RuntimeMetaData.checkVersion("4.13.2", RuntimeMetaData.VERSION); }
1515

1616
protected static final DFA[] _decisionToDFA;
1717
protected static final PredictionContextCache _sharedContextCache =

java/com/walmartlabs/lacinia/GraphqlListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.1
1+
// Generated from resources/com/walmartlabs/lacinia/Graphql.g4 by ANTLR 4.13.2
22
package com.walmartlabs.lacinia;
33
import org.antlr.v4.runtime.tree.ParseTreeListener;
44

0 commit comments

Comments
 (0)