CodeQL library for Go
codeql/go-all 0.7.13 (changelog, source)
Search

Member predicate Expr::getIntValue

Gets the integer value this expression evaluates to, if any.

Note that this does not have a result if the value is too large to fit in a 32-bit signed integer type.

int getIntValue()