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

Class SsaVariable

An SSA variable.

Import path

import semmle.go.dataflow.SSA

Direct supertypes

Indirect supertypes

Predicates

getAUse

Gets a use that refers to this SSA variable.

getAUseIn

Gets a use in basic block bb that refers to this SSA variable.

getDefinition

Gets the (unique) definition of this SSA variable.

getType

Gets the type of this SSA variable.

hasLocationInfo

DEPRECATED: Use getLocation() instead.

Inherited predicates

definesAt

Holds if this SSA definition defines v at index i in basic block bb. Phi nodes are considered to be at index -1, while normal variable writes are at the index of the control flow node they wrap.

from Definition
getBasicBlock

Gets the basic block to which this SSA definition belongs.

from Definition
getLocation

Gets the location of this SSA definition.

from Definition
getSourceVariable

Gets the source variable underlying this SSA definition.

from Definition
toString

Gets a textual representation of this SSA definition.

from Definition