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

Member predicate KeyValueExpr::getType

Gets the type of this key-value pair.

The Go type checker does not assign a type to key-value pairs, so we use the type of the value, which is the value that flows through this node.

Type getType()