mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Python: add default implementation of getName() and deprecate it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user