diff options
author | acolyer <acolyer> | 2003-02-26 16:20:45 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2003-02-26 16:20:45 +0000 |
commit | 2a7c636fc2ab2aae553f9e40ef08dc66f6a0ee57 (patch) | |
tree | ece311fe29c25e809a457adee941434c202208c6 | |
parent | 190b7fa9b106b246e5d41f9a41eba38e6399b257 (diff) | |
download | aspectj-2a7c636fc2ab2aae553f9e40ef08dc66f6a0ee57.tar.gz aspectj-2a7c636fc2ab2aae553f9e40ef08dc66f6a0ee57.zip |
Added logic to update declarationSourceStart/End as
well as sourceStart/End (used by AsmBuilder)
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java index 1a048928d..33ffe3bf1 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java @@ -37,8 +37,10 @@ public class DeclareDeclaration extends MethodDeclaration { super(result); this.declare = symbolicDeclare; if (declare != null) { - sourceStart = declare.getStart(); - sourceEnd = declare.getEnd(); + // AMC added init of declarationSourceXXX fields which are used + // in AsmBuilder for processing of MethodDeclaration locations. + declarationSourceStart = sourceStart = declare.getStart(); + declarationSourceEnd = sourceEnd = declare.getEnd(); } //??? we might need to set parameters to be empty this.returnType = TypeReference.baseTypeReference(T_void, 0); |