Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 0d76dd0

Browse files
author
Juanjo Alvarez
committed
Update dependencies
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 7b05d98 commit 0d76dd0

File tree

2 files changed

+32
-15
lines changed

2 files changed

+32
-15
lines changed

Gopkg.lock

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

native/src/main/java/tech/sourced/babelfish/JsonASTVisitor.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ public class JsonASTVisitor extends ASTVisitor {
4141
IOException error;
4242
boolean hasError = false;
4343

44+
public class SyntaxErrorException extends Exception {
45+
public SyntaxErrorException() { super(); }
46+
public SyntaxErrorException(String message) { super(message); }
47+
public SyntaxErrorException(String message, Throwable cause) { super(message, cause); }
48+
public SyntaxErrorException(Throwable cause) { super(cause); }
49+
}
50+
4451
// The visitChildren method uses reflection to get the methods and return values
4552
// to retrieve children and assign them to properties instead of a flat list. That is
4653
// slow so we'll cache every inspected node using this class and the childrenMethod
@@ -884,6 +891,10 @@ public int visit(IASTDeclaration node) {
884891
}
885892
}
886893

894+
//if (node instanceof IASTProblemDeclaration) {
895+
//throw new IOException("Syntax error on file");
896+
//}
897+
887898
serializeComments(node);
888899
visitChildren(node);
889900
} finally {

0 commit comments

Comments
 (0)