Skip to content

Commit

Permalink
Deprecate getMethodSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Wagner committed Nov 21, 2023
1 parent 06a2b96 commit 6201540
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/org/rascalmpl/library/lang/java/m3/Core.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ M3 createM3FromJar(loc jarFile, list[loc] classPath = []) {
methodContainment = {<c,m> | <c,m> <- containment, isMethod(m)};
for(<from,to> <- candidates) {
model.methodOverrides += {<m, getMethodSignature(m)> | m <- methodContainment[from]}
o {<getMethodSignature(m), m> | m <- methodContainment[to]};
model.methodOverrides += {<m, m.file> | m <- methodContainment[from]}
o {<m.file, m> | m <- methodContainment[to]};
}
return model;
Expand All @@ -202,6 +202,9 @@ void unregisterJavaProject(loc project) {
unregisterProjectSchemes(project, {"java+compilationUnit", "java+compilationUnit", "java+class", "java+constructor", "java+initializer", "java+parameter","java+variable","java+field" , "java+interface" , "java+enum", "java+class" , "java+interface","java+enum"});
}
@deprecated{
Use `.file` on a location instead, i.e. `someLocation.file`.
}
str getMethodSignature(loc method)
= substring(method.path, findLast(method.path,"/") + 1);
Expand Down

0 comments on commit 6201540

Please sign in to comment.