Add missing predicate + update test output

This commit is contained in:
Joe Farebrother
2025-09-03 09:48:07 +01:00
parent 2dcf3c7c45
commit cd6a151d9b
2 changed files with 10 additions and 1 deletions

View File

@@ -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]