aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-06-25 23:07:16 +0200
committerRoel Spilker <r.spilker@gmail.com>2012-06-25 23:07:16 +0200
commit0f5437319e682481fdfda13b5043982f4235302a (patch)
treec0846791216bc0f461ec11f986323773b7dd315b
parent3de71afd748cf7e241fb8ee2016dfa23251c620a (diff)
downloadlombok-0f5437319e682481fdfda13b5043982f4235302a.tar.gz
lombok-0f5437319e682481fdfda13b5043982f4235302a.tar.bz2
lombok-0f5437319e682481fdfda13b5043982f4235302a.zip
Add positions to generated constructor call (issue 336)
-rw-r--r--src/core/lombok/eclipse/handlers/HandleConstructor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleConstructor.java b/src/core/lombok/eclipse/handlers/HandleConstructor.java
index 5731769a..eec41577 100644
--- a/src/core/lombok/eclipse/handlers/HandleConstructor.java
+++ b/src/core/lombok/eclipse/handlers/HandleConstructor.java
@@ -228,6 +228,8 @@ public class HandleConstructor {
constructor.selector = ((TypeDeclaration)type.get()).name;
constructor.constructorCall = new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper);
setGeneratedBy(constructor.constructorCall, source);
+ constructor.constructorCall.sourceStart = source.sourceStart;
+ constructor.constructorCall.sourceEnd = source.sourceEnd;
constructor.thrownExceptions = null;
constructor.typeParameters = null;
constructor.bits |= ECLIPSE_DO_NOT_TOUCH_FLAG;