瀏覽代碼

Updated to include source location offset.

tags/Root_AspectJ5_Development
mkersten 19 年之前
父節點
當前提交
e633c1f58e
共有 1 個檔案被更改,包括 6 行新增3 行删除
  1. 6
    3
      docs/sandbox/api-clients/org/aspectj/samples/AsmRelationshipMapExtensionTest.java

+ 6
- 3
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(

Loading…
取消
儲存