diff --git a/shared/util/codeql/util/Option.qll b/shared/util/codeql/util/Option.qll index 0114fe0a59b..f47d975d268 100644 --- a/shared/util/codeql/util/Option.qll +++ b/shared/util/codeql/util/Option.qll @@ -28,6 +28,9 @@ module Option { /** Gets the wrapped element, if any. */ T asSome() { this = TSome(result) } + + /** Holds if this option is the singleton `None`. */ + predicate isNone() { this = TNone() } } /** The singleton `None` element. */