Replace getEncodedFile with shared getFileBySourceArchiveName predicate

While also making it work with paths for databases created on Windows.
This commit is contained in:
Nick Rolfe
2020-11-10 13:48:01 +00:00
parent 26286e534e
commit 1e1eb7ee33
26 changed files with 141 additions and 55 deletions

View File

@@ -12,5 +12,6 @@ import definitions
external string selectedSourceFile();
from Use e, Declaration def, string kind
where def = definitionOf(e, kind) and def.getFile() = getEncodedFile(selectedSourceFile())
where
def = definitionOf(e, kind) and def.getFile() = getFileBySourceArchiveName(selectedSourceFile())
select e, def, kind