mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Add missing predicate + update test output
This commit is contained in:
@@ -187,7 +187,15 @@ Function getPossibleMissingSuper(Class base, Function shouldCall, string name) {
|
||||
)
|
||||
}
|
||||
|
||||
class FunctionOption = LocatableOption<Location, Function>::Option;
|
||||
/** An optional `Function`. */
|
||||
class FunctionOption extends LocatableOption<Location, Function>::Option {
|
||||
/** Gets the qualified name of this function, or the empty string if it is None. */
|
||||
string getQualifiedName() {
|
||||
this.isNone() and result = ""
|
||||
or
|
||||
result = this.asSome().getQualifiedName()
|
||||
}
|
||||
}
|
||||
|
||||
/** Gets the result of `getPossibleMissingSuper`, or None if none exists. */
|
||||
bindingset[name]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
| multiple_init.py:21:5:21:23 | Function __init__ | This initialization method calls $@ multiple times, via $@ and $@, resolving to $@ and $@ respectively. | multiple_init.py:9:5:9:23 | Function __init__ | C1.__init__ | multiple_init.py:23:9:23:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:24:9:24:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:9:5:9:23 | Function __init__ | C1.__init__ | multiple_init.py:15:5:15:23 | Function __init__ | C2.__init__ |
|
||||
| multiple_init.py:42:5:42:23 | Function __init__ | This initialization method calls $@ multiple times, via $@ and $@, resolving to $@ and $@ respectively. | multiple_init.py:31:5:31:23 | Function __init__ | D1.__init__ | multiple_init.py:44:9:44:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:45:9:45:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:31:5:31:23 | Function __init__ | D1.__init__ | multiple_init.py:36:5:36:23 | Function __init__ | D2.__init__ |
|
||||
| multiple_init.py:84:5:84:23 | Function __init__ | This initialization method calls $@ multiple times, via $@ and $@, resolving to $@ and $@ respectively. | multiple_init.py:80:5:80:23 | Function __init__ | F3.__init__ | multiple_init.py:86:9:86:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:87:9:87:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:75:5:75:23 | Function __init__ | F2.__init__ | multiple_init.py:80:5:80:23 | Function __init__ | F3.__init__ |
|
||||
| multiple_init.py:111:5:111:23 | Function __init__ | This initialization method calls $@ multiple times, via $@ and $@, resolving to $@ and $@ respectively. | multiple_init.py:92:5:92:23 | Function __init__ | G1.__init__ | multiple_init.py:113:9:113:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:114:9:114:25 | ControlFlowNode for Attribute() | this call | multiple_init.py:96:5:96:23 | Function __init__ | G2.__init__ | multiple_init.py:101:5:101:23 | Function __init__ | G3.__init__ |
|
||||
|
||||
Reference in New Issue
Block a user