Skip to content

Commit ba56565

Browse files
Update shared/util/codeql/util/Option.qll
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 71f5c8a commit ba56565

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared/util/codeql/util/Option.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ module Option<TypeWithToString T> {
2828

2929
/** Gets the wrapped element, if any. */
3030
T asSome() { this = TSome(result) }
31+
32+
/** Holds if this option is the singleton `None`. */
33+
predicate isNone() { this = TNone() }
3134
}
3235

3336
/** The singleton `None` element. */

0 commit comments

Comments
 (0)