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

Member predicate ExpressionSwitchStmt::mayHaveSideEffects

Holds if the execution of this statement may produce observable side effects.

Memory allocation is not considered an observable side effect.

predicate mayHaveSideEffects()