We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a578f44 commit 40390d1Copy full SHA for 40390d1
ql/ql/src/codeql_ql/ast/Yaml.qll
@@ -88,6 +88,16 @@ class QlPackDocument extends YamlDocument {
88
}
89
90
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
+ */
101
private predicate shouldAppend(QlRefDocument qlref, Folder f, string relativePath) {
102
relativePath = qlref.getRelativeQueryPath() and
103
(
0 commit comments