Skip to content

Commit 40390d1

Browse files
committed
Address review comment
1 parent a578f44 commit 40390d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ql/ql/src/codeql_ql/ast/Yaml.qll

+10
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ class QlPackDocument extends YamlDocument {
8888
}
8989
}
9090

91+
/**
92+
* Holds if `qlref` is a `.qlref` YAML document referencing a query
93+
* at relative path `relativePath`, and `f` is a candidate folder
94+
* in which to lookup the referenced query.
95+
*
96+
* `f` is either:
97+
* - the root of the QL pack containing `qlref`,
98+
* - the root of a QL pack that is a dependency of the QL pack containing `qlref`, or
99+
* - the folder containing `qlref`.
100+
*/
91101
private predicate shouldAppend(QlRefDocument qlref, Folder f, string relativePath) {
92102
relativePath = qlref.getRelativeQueryPath() and
93103
(

0 commit comments

Comments
 (0)