diff options
author | mkersten <mkersten> | 2005-01-13 03:14:50 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2005-01-13 03:14:50 +0000 |
commit | e633c1f58e2a163e016c99f08a08386a6d003d36 (patch) | |
tree | 032104bb364151c78d1a82ce1d636f59974d578e | |
parent | 603b063ecd2943e20f099712d9b754b19a380fee (diff) | |
download | aspectj-e633c1f58e2a163e016c99f08a08386a6d003d36.tar.gz aspectj-e633c1f58e2a163e016c99f08a08386a6d003d36.zip |
Updated to include source location offset.
-rw-r--r-- | docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java b/docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java index 11b9ff0d4..5ffeaa85f 100644 --- a/docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java +++ b/docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java @@ -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( |