mirror of
https://github.com/github/codeql.git
synced 2026-02-16 06:53:41 +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]
|
||||
|
||||
Reference in New Issue
Block a user