Class IR::ElementTarget
A reference to an element of an array, slice or map, used as the target of a write.
Import path
import semmle.go.controlflow.IRDirect supertypes
Indirect supertypes
Inherited fields
| w | from WriteTarget |
Predicates
| getBase | Gets the instruction computing the base value of this element reference. |
| getIndex | Gets the instruction computing the index of this element reference. |
| getLocation | Gets the source location for this element. |
| toString | Gets a textual representation of this target. |
Inherited predicates
| asSsaVariable | Gets the SSA variable being written to, if any. | from WriteTarget |
| getName | Gets the name of the variable or field being written to, if any. | from WriteTarget |
| getWrite | Gets the write instruction of which this is the target. | from WriteTarget |
| hasLocationInfo | DEPRECATED: Use | from WriteTarget |
| refersTo | Holds if | from WriteTarget |