mirror of
https://github.com/github/codeql.git
synced 2026-02-13 05:31:22 +01:00
19 lines
462 B
Plaintext
19 lines
462 B
Plaintext
/** Provides the `Boolean` class. */
|
|
overlay[local?]
|
|
module;
|
|
|
|
/**
|
|
* A utility class that is equivalent to `boolean`.
|
|
*
|
|
* As opposed to `boolean`, this type does not require explicit binding.
|
|
*/
|
|
final class Boolean extends FinalBoolean {
|
|
Boolean() { this = [true, false] }
|
|
|
|
/** Returns either "true" or "false". */
|
|
// reimplement to avoid explicit binding
|
|
string toString() { result = super.toString() }
|
|
}
|
|
|
|
final private class FinalBoolean = boolean;
|