mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Js/Yaml: add getFile() predicate
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user