CodeQL library for Go
codeql/go-all 1.1.2-dev (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()