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

Member predicate Public::ReadNode::readsField

Holds if this data-flow node reads the value of field package.type.field on the value of base or its implicit dereference.

For example, for the field read x.width, base is either the data-flow node corresponding to x or (if x is a pointer) the data-flow node corresponding to the implicit dereference *x, and x has the type package.type.

predicate readsField(Node base, string package, string type, string field)