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

Class IR::WriteTarget

A representation of the target of a write instruction.

Import path

import semmle.go.controlflow.IR

Direct supertypes

Known direct subtypes

Fields

Predicates

asSsaVariable

Gets the SSA variable being written to, if any.

getLocation

Gets the source location for this element.

getName

Gets the name of the variable or field being written to, if any.

getWrite

Gets the write instruction of which this is the target.

hasLocationInfo

DEPRECATED: Use getLocation() instead.

refersTo

Holds if e is the variable or field being written to.

toString

Gets a textual representation of this target.

Charpred