Use newSourceEnd for sourceAnd calculation

This commit is contained in:
Jappe van der Hel committed 2011-12-20 19:59:59 +01:00
1 parent 5ac9044224
commit 0a8794355f
1 file changed
+1 -1
@@ -261,7 +261,7 @@ public final class SetGeneratedByVisitor extends ASTVisitor {
// start = newSourceStart;
// end = newSourceStart;
// return ((start<<32)+end);
return ((long)newSourceStart << 32) | (newSourceStart & INT_TO_LONG_MASK);
return ((long)newSourceStart << 32) | (newSourceEnd & INT_TO_LONG_MASK);
}
@Override public boolean visit(AllocationExpression node, BlockScope scope) {