mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: better charPred
This commit is contained in:
@@ -8,14 +8,16 @@ module MagicMethod {
|
||||
}
|
||||
|
||||
class Actual extends ControlFlowNode {
|
||||
Object resolvedMagicMethod;
|
||||
Value resolvedMagicMethod;
|
||||
|
||||
Actual() {
|
||||
exists(Potential pot |
|
||||
this.(Potential) = pot and
|
||||
pot.getSelf().(ClassObject).lookupAttribute(pot.getMagicMethodName()) = resolvedMagicMethod
|
||||
pot.getSelf().pointsTo().getClass().lookup(pot.getMagicMethodName()) = resolvedMagicMethod
|
||||
)
|
||||
}
|
||||
|
||||
Value getResolvedMagicMethod() { result = resolvedMagicMethod }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user