2020-11-10 17:14:27 +03:00
|
|
|
/**
|
2020-11-10 16:48:01 +03:00
|
|
|
* Provides shared predicates related to contextual queries in the code viewer.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import semmle.files.FileSystem
|
2024-02-23 13:18:51 +03:00
|
|
|
private import codeql.util.FileSystem
|
2020-11-10 16:48:01 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the `File` matching the given source file name as encoded by the VS
|
|
|
|
* Code extension.
|
|
|
|
*/
|
|
|
|
cached
|
|
|
|
File getFileBySourceArchiveName(string name) {
|
2024-02-23 13:18:51 +03:00
|
|
|
result = IdeContextual<File>::getFileBySourceArchiveName(name)
|
2020-11-10 16:48:01 +03:00
|
|
|
}
|