mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Move getAChildContainer one scope up
This commit is contained in:
@@ -221,6 +221,12 @@ module Make<InputSig Input> {
|
||||
|
||||
/** Provides logic related to `Folder`s. */
|
||||
module Folder {
|
||||
pragma[nomagic]
|
||||
private Container getAChildContainer(Container c, string baseName) {
|
||||
result = c.getAChildContainer() and
|
||||
baseName = result.getBaseName()
|
||||
}
|
||||
|
||||
/** Holds if `relativePath` needs to be appended to `f`. */
|
||||
signature predicate shouldAppendSig(Folder f, string relativePath);
|
||||
|
||||
@@ -239,12 +245,6 @@ module Make<InputSig Input> {
|
||||
result = 0
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
private Container getAChildContainer(Container c, string baseName) {
|
||||
result = c.getAChildContainer() and
|
||||
baseName = result.getBaseName()
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
private Container appendStep(Folder f, string relativePath, int i) {
|
||||
i = -1 and
|
||||
|
||||
Reference in New Issue
Block a user