mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Rename super_() to superType() for better consistency.
This commit is contained in:
@@ -368,7 +368,7 @@ class SuperInstance extends TSuperInstance, ObjectInternal {
|
||||
override boolean isClass() { result = false }
|
||||
|
||||
override ObjectInternal getClass() {
|
||||
result = ObjectInternal::super_()
|
||||
result = ObjectInternal::superType()
|
||||
}
|
||||
|
||||
override boolean isComparable() { result = false }
|
||||
|
||||
@@ -418,7 +418,7 @@ module ObjectInternal {
|
||||
result = TBuiltinClassObject(Builtin::special("property"))
|
||||
}
|
||||
|
||||
ObjectInternal super_() {
|
||||
ObjectInternal superType() {
|
||||
result = TBuiltinClassObject(Builtin::special("super"))
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ newtype TObject =
|
||||
}
|
||||
or
|
||||
TUnknownInstance(BuiltinClassObjectInternal cls) {
|
||||
cls != ObjectInternal::super_() and
|
||||
cls != ObjectInternal::superType() and
|
||||
cls != ObjectInternal::builtin("bool") and
|
||||
cls != ObjectInternal::noneType()
|
||||
}
|
||||
@@ -208,7 +208,7 @@ pragma [noinline]
|
||||
private predicate super_call2(CallNode call, ControlFlowNode arg0, ControlFlowNode arg1, PointsToContext context) {
|
||||
exists(ControlFlowNode func |
|
||||
call2(call, func, arg0, arg1) and
|
||||
PointsToInternal::pointsTo(func, context, ObjectInternal::super_(), _)
|
||||
PointsToInternal::pointsTo(func, context, ObjectInternal::superType(), _)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ predicate method_binding(AttrNode instantiation, ObjectInternal self, CallableOb
|
||||
receiver(instantiation, context, obj, name) |
|
||||
exists(ObjectInternal cls |
|
||||
cls = obj.getClass() and
|
||||
cls != ObjectInternal::super_() and
|
||||
cls != ObjectInternal::superType() and
|
||||
cls.attribute(name, function, _) and
|
||||
self = obj
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user