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

Member predicate Expr::isConst

Holds if this expression is constant, that is, if its value is determined at compile-time.

predicate isConst()