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

Predicate IR::assignValueInstruction

Gets the instruction corresponding to the assignment of the value variable of range statement rs.

Import path

import semmle.go.controlflow.IR
AssignInstruction assignValueInstruction(RangeStmt rs)