Skip to content

Commit 5fd2584

Browse files
committed
get external refine map in CLM; correction in ERFP (missing super.visit...())
1 parent 5df3309 commit 5fd2584

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

latte/src/main/java/context/ClassLevelMaps.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,8 @@ public boolean hasExternalMethodParamPermissions(
275275

276276
return methodMap.containsKey(Pair.of(methodName, arity));
277277
}
278+
279+
public Object getExternaRefinementsMap() {
280+
return externalMethodParamPermissions;
281+
}
278282
}

latte/src/main/java/typechecking/ExternalRefinementFirstPass.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public <T> void visitCtInterface(CtInterface<T> ctInterface) {
6767
logInfo("Processing external interface: " + ctInterface.getQualifiedName(), ctInterface);
6868
scan(ctInterface.getMethods());
6969
}
70+
super.visitCtInterface(ctInterface);
7071
}
7172

7273
@Override
@@ -91,5 +92,7 @@ public <T> void visitCtMethod(CtMethod<T> method) {
9192
maps.addExternalMethodParamPermissions(declaringClass, methodSig.getLeft(), methodSig.getRight(), paramAnnotations);
9293

9394
logInfo("Collected annotations for method: " + methodSig + " => " + paramAnnotations, method);
95+
super.visitCtMethod(method);
9496
}
97+
9598
}

0 commit comments

Comments
 (0)