We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97ca2af + ae5ac11 commit 959a79fCopy full SHA for 959a79f
shared/util/codeql/util/FileSystem.qll
@@ -239,6 +239,12 @@ module Make<InputSig Input> {
239
result = 0
240
}
241
242
+ pragma[nomagic]
243
+ private Container getAChildContainer(Container c, string baseName) {
244
+ result = c.getAChildContainer() and
245
+ baseName = result.getBaseName()
246
+ }
247
+
248
pragma[nomagic]
249
private Container appendStep(Folder f, string relativePath, int i) {
250
i = -1 and
@@ -253,10 +259,7 @@ module Make<InputSig Input> {
253
259
else
254
260
if comp = "."
255
261
then result = mid
256
- else (
257
- result = mid.getAChildContainer() and
258
- result.getBaseName() = comp
- )
262
+ else result = getAChildContainer(mid, comp)
263
)
264
265
0 commit comments