Js/Yaml: add getFile() predicate

This commit is contained in:
Arthur Baars
2023-04-11 16:01:44 +01:00
parent 3c4bd5b6a7
commit 83cd55cb29
4 changed files with 6 additions and 3 deletions

View File

@@ -150,6 +150,9 @@ module Make<InputSig Input> {
* ```
*/
class YamlNode instanceof Input::NodeBase {
/** Gets the file this node comes from. */
Input::File getFile() { result = this.getLocation().getFile() }
/**
* Gets the `Location` of this node.
*/