X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/graphql/GraphqlErrorHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public static Object locations(List<SourceLocation> locations) {
/**
* Positive integers starting from 1 required for error locations,
* from the spec <a href="https://spec.graphql.org/draft/#sec-Errors.Error-Result-Format">...</a>
*
* @param location the source location in play
* @return a value for source location of the error
*/
public static Object location(SourceLocation location) {
int line = location.getLine();
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/graphql/parser/ParserOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ public int getMaxRuleDepth() {
/**
* Option to redact offending tokens in parser error messages.
* By default, the parser will include the offending token in the error message, if possible.
*
* @return true if the token parser messages should be redacted
*/
public boolean isRedactTokenParserErrorMessages() {
return redactTokenParserErrorMessages;
Expand Down
X Tutup