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

Datatype IR::TWriteTarget

A representation of the target of a write instruction.

Import path

import semmle.go.controlflow.IR

Known direct subtypes

Branch types

MkLhs

A left-hand side of an assignment.

MkLiteralElementTarget

A composite literal element target.

MkResultWriteTarget

A result variable write target. Parameterized by ControlFlow::Node rather than WriteResultInstruction to avoid a circular dependency: WriteResultInstruction extends WriteInstruction needs MkResultWriteTarget(this) to hold, which would in turn require this to already be a WriteResultInstruction.

Injectors

MkLhs

A left-hand side of an assignment.

MkLiteralElementTarget

A composite literal element target.

MkResultWriteTarget

A result variable write target. Parameterized by ControlFlow::Node rather than WriteResultInstruction to avoid a circular dependency: WriteResultInstruction extends WriteInstruction needs MkResultWriteTarget(this) to hold, which would in turn require this to already be a WriteResultInstruction.