C++: Add QLDoc.

This commit is contained in:
Jason Reed
2020-04-29 11:06:06 -04:00
parent e73833eda6
commit 62c128f9a4

View File

@@ -215,5 +215,10 @@ Top definitionOf(Top e, string kind) {
strictcount(result.getLocation()) < 10
}
/**
* Returns an appropriately encoded version of a filename `name`
* passed by the VS Code extension in order to coincide with the
* output of `.getFile()` on locatable entities.
*/
cached
File getEncodedFile(string name) { result.getAbsolutePath().replaceAll(":", "_") = name }