mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Better names for helper predicates.
This commit is contained in:
@@ -669,12 +669,12 @@ private module InterModulePointsTo {
|
||||
exists(string name, ModuleObjectInternal mod, Module m |
|
||||
mod.getSourceModule() = m and m = result.getScope() and
|
||||
PointsToInternal::pointsTo(f.getModule(name), context, mod, _) and
|
||||
result = ssa_helper(f, name, m)
|
||||
result = ssa_variable_for_module_attribute_helper(f, name, m)
|
||||
)
|
||||
}
|
||||
|
||||
pragma [noinline]
|
||||
private EssaVariable ssa_helper(ImportMemberNode f, string name, Module m) {
|
||||
private EssaVariable ssa_variable_for_module_attribute_helper(ImportMemberNode f, string name, Module m) {
|
||||
result.getSourceVariable().getName() = name and result.getAUse() = f
|
||||
and m = f.getEnclosingModule()
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ class ReModulePointToExtension extends PointsToExtension {
|
||||
}
|
||||
|
||||
pragma [noinline]
|
||||
predicate pointsTo_helper(Context context) {
|
||||
private predicate pointsTo_helper(Context context) {
|
||||
context.appliesTo(this)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user