Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7abcc0f

Browse files
committed
Now public API
1 parent e28e51c commit 7abcc0f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main/java/graphql/parser/Parser.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package graphql.parser;
22

3-
import graphql.Internal;
3+
import graphql.PublicApi;
44
import graphql.language.Document;
55
import graphql.language.SourceLocation;
66
import graphql.parser.antlr.GraphqlLexer;
@@ -19,7 +19,7 @@
1919
import java.io.UncheckedIOException;
2020
import java.util.List;
2121

22-
@Internal
22+
@PublicApi
2323
public class Parser {
2424

2525

@@ -96,6 +96,13 @@ public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int
9696
return doc;
9797
}
9898

99+
/**
100+
* Allows you to override the ANTLR to AST code.
101+
*
102+
* @param tokens the toke stream
103+
* @param multiSourceReader the source of the query document
104+
* @return a new GraphqlAntlrToLanguage instance
105+
*/
99106
protected GraphqlAntlrToLanguage getAntlrToLanguage(CommonTokenStream tokens, MultiSourceReader multiSourceReader) {
100107
return new GraphqlAntlrToLanguage(tokens, multiSourceReader);
101108
}

0 commit comments

Comments
 (0)