]> source.dussan.org Git - aspectj.git/commitdiff
Updated to include source location offset.
authormkersten <mkersten>
Thu, 13 Jan 2005 03:14:50 +0000 (03:14 +0000)
committermkersten <mkersten>
Thu, 13 Jan 2005 03:14:50 +0000 (03:14 +0000)
docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java

index 11b9ff0d4ca236f21ebf76bc8b2276ac5a4c942c..5ffeaa85f721a0eb85606c0cc9e09d5e60f34510 100644 (file)
@@ -59,13 +59,16 @@ class DeclareInfoProvider extends AsmRelationshipProvider {
         for (Iterator it = newParents.iterator(); it.hasNext();) {
             ResolvedTypeX superType = (ResolvedTypeX) it.next();
             
-               String sourceHandle = ProgramElement.createHandleIdentifier(decp.getSourceFile(),decp.getLine(),decp.getColumn());
+               String sourceHandle = ProgramElement.createHandleIdentifier(
+                    decp.getSourceFile(),decp.getLine(),decp.getColumn(), decp.getOffset());
                IProgramElement ipe = AsmManager.getDefault().getHierarchy().findElementForHandle(sourceHandle);
-
+  
                String superHandle = ProgramElement.createHandleIdentifier(
                        superType.getSourceLocation().getSourceFile(),
                        superType.getSourceLocation().getLine(),
-                       superType.getSourceLocation().getColumn());
+                       superType.getSourceLocation().getColumn(),
+                       superType.getSourceLocation().getOffset()
+            );
                                
                if (sourceHandle != null && superHandle != null) {
                        IRelationship foreward = AsmManager.getDefault().getRelationshipMap().get(