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

Predicate IR::assignKeyInstruction

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

Import path

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