Class VariableWithFields
A variable with zero or more fields or elements read from it.
Import path
import semmle.go.VariableWithFieldsDirect 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. |
| getLocation | Gets the location of this variable with fields. |
| 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 | DEPRECATED: Use |
| toString | Gets a textual representation of this element. |