Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Apr 14, 2018
1 parent 0c67c50 commit 55bf9fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ SourcePosition buildPositionCtElement(CtElement e, ASTNode node) {
if (variableDeclaration.type != null) {
modifiersSourceEnd = variableDeclaration.type.sourceStart() - 2;
} else if (variableDeclaration instanceof Initializer) {
modifiersSourceEnd = ((Initializer) variableDeclaration).block.sourceStart;
modifiersSourceEnd = ((Initializer) variableDeclaration).block.sourceStart - 1;
} else {
// variable that has no type such as TypeParameter
modifiersSourceEnd = declarationSourceStart - 1;
Expand Down

0 comments on commit 55bf9fd

Please sign in to comment.