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

Class VariableWithFields

A variable with zero or more fields or elements read from it.

Import path

import semmle.go.VariableWithFields

Direct supertypes

Predicates

getAUse

Gets a use that refers to this variable with fields.

getAWrite

Gets a write of this variable with fields.

getBaseVariable

Gets the variable corresponding to the base of this variable with fields.

getElement

Gets the element that this variable with fields reads, if any.

getField

Gets the field that is the last step of this variable with fields, if any.

getParent

Gets the variable with fields corresponding to the parent of this variable with fields.

getQualifiedName

Gets the qualified name of the source variable or variable and fields that this represents.

getType

Gets the type of this variable with fields.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

toString

Gets a textual representation of this element.