Skip to content

Commit 4ddebb9

Browse files
committed
Better names for helper predicates.
1 parent 7031391 commit 4ddebb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/ql/src/semmle/python/pointsto/PointsTo.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,12 +669,12 @@ private module InterModulePointsTo {
669669
exists(string name, ModuleObjectInternal mod, Module m |
670670
mod.getSourceModule() = m and m = result.getScope() and
671671
PointsToInternal::pointsTo(f.getModule(name), context, mod, _) and
672-
result = ssa_helper(f, name, m)
672+
result = ssa_variable_for_module_attribute_helper(f, name, m)
673673
)
674674
}
675675

676676
pragma [noinline]
677-
private EssaVariable ssa_helper(ImportMemberNode f, string name, Module m) {
677+
private EssaVariable ssa_variable_for_module_attribute_helper(ImportMemberNode f, string name, Module m) {
678678
result.getSourceVariable().getName() = name and result.getAUse() = f
679679
and m = f.getEnclosingModule()
680680
}

python/ql/src/semmle/python/types/Extensions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class ReModulePointToExtension extends PointsToExtension {
146146
}
147147

148148
pragma [noinline]
149-
predicate pointsTo_helper(Context context) {
149+
private predicate pointsTo_helper(Context context) {
150150
context.appliesTo(this)
151151
}
152152

0 commit comments

Comments
 (0)