Skip to content

Commit

Permalink
in-corporated the code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
subyssurendran666 committed Sep 25, 2024
1 parent ff29fb0 commit 8cb4db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5511,8 +5511,8 @@ public static void example() {
assertEquals("Not a Single Variable Declaration", ASTNode.SINGLE_VARIABLE_DECLARATION, svd.getNodeType());
assertEquals("Not a Simple Type", ASTNode.SIMPLE_TYPE, svd.getType().getNodeType());
assertEquals("Not a Simple Name", ASTNode.SIMPLE_NAME, svd.getName().getNodeType());
assertEquals("Single Variable Declaration length is not correct", svd.getLength(), 18);
assertEquals("Single Variable Declaration startPosition is not correct", svd.getStartPosition(), 116);
assertEquals("Single Variable Declaration length is not correct", svd.getLength(), contents.substring(contents.indexOf("RuntimeException e")).indexOf(')'));
assertEquals("Single Variable Declaration startPosition is not correct", svd.getStartPosition(), contents.indexOf("RuntimeException"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public int flushCommentsDefinedPriorTo(int position) {
@Override
protected void consumeExitTryBlock() {
flushCommentsDefinedPriorTo(this.scanner.currentPosition);
super.consumeExitTryBlock();
}

protected int getCommentPtr() {
Expand Down

0 comments on commit 8cb4db4

Please sign in to comment.