Merge pull request #22 from jvanderhel/Fix_SetGeneratedByVisitor

Use newSourceEnd for sourceEnd calculation
This commit is contained in:
Roel Spilker committed 2012-01-02 10:11:14 -08:00
commit 6f4f053cc5
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) {