Python: add default implementation of getName() and deprecate it

This commit is contained in:
Erik Krogh Kristensen
2022-03-07 11:13:32 +01:00
parent e721094182
commit a1769f8036
4 changed files with 9 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ predicate of_interest(ControlFlowNode n, int line) {
exists(Location l, File f | l = n.getLocation() |
line = l.getStartLine() and
f = l.getFile() and
f.getName().matches("%test.py%") and
f.getAbsolutePath().matches("%test.py%") and
exists(Comment c |
c.getLocation().getStartLine() < line and
c.getLocation().getFile() = f