]> source.dussan.org Git - aspectj.git/commitdiff
Added logic to update declarationSourceStart/End as
authoracolyer <acolyer>
Wed, 26 Feb 2003 16:20:45 +0000 (16:20 +0000)
committeracolyer <acolyer>
Wed, 26 Feb 2003 16:20:45 +0000 (16:20 +0000)
well as sourceStart/End (used by AsmBuilder)

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/DeclareDeclaration.java

index 1a048928d3b968a1b920c5442fcf3ff8f7025977..33ffe3bf1e2748be7003a7fd6ffd40f67f19dc91 100644 (file)
@@ -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);