mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
add getBoolValue() as a utility predicate on BooleanLiteral
This commit is contained in:
@@ -379,7 +379,10 @@ class NullLiteral extends @null_literal, Literal { }
|
||||
* false
|
||||
* ```
|
||||
*/
|
||||
class BooleanLiteral extends @boolean_literal, Literal { }
|
||||
class BooleanLiteral extends @boolean_literal, Literal {
|
||||
/** Gets the value of this literal. */
|
||||
boolean getBoolValue() { if this.getRawValue() = "true" then result = true else result = false }
|
||||
}
|
||||
|
||||
/**
|
||||
* A numeric literal.
|
||||
|
||||
Reference in New Issue
Block a user