From 2a7c636fc2ab2aae553f9e40ef08dc66f6a0ee57 Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 26 Feb 2003 16:20:45 +0000 Subject: [PATCH] Added logic to update declarationSourceStart/End as well as sourceStart/End (used by AsmBuilder) --- .../ajdt/internal/compiler/ast/DeclareDeclaration.java | 6 ++++-- 1 file 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); -- 2.39.5