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

Member predicate AddressExpr::getAPrimaryQlClass

Gets the name of a primary CodeQL class to which this node belongs.

For most nodes, this is simply the most precise syntactic category to which they belong; for example, AddExpr is a primary class, but BinaryExpr is not.

For identifiers and selector expressions, the class describing what kind of entity they refer to (for example FunctionName or TypeName) is also considered primary. For such nodes, this predicate has multiple values.

string getAPrimaryQlClass()