Class ReceiverVariable
The receiver variable of a method.
Import path
import semmle.go.Scopes
Direct supertypes
Indirect supertypes
Fields
Predicates
isReceiverOf | Holds if this is the receiver variable of method |
Inherited predicates
getARead | Gets a data-flow node that reads the value of this entity. | from ValueEntity |
getAReference | Gets a reference to this entity. | from Entity |
getAWrite | Gets a control-flow node that updates the value of this entity. | from ValueEntity |
getDeclaration | Gets the declaring identifier for this entity, if any. | from Entity |
getFunction | Gets the function to which this parameter belongs. | from Parameter |
getIndex | Gets the index of this parameter among all parameters of the function. | from Parameter |
getInit | Gets the expression to which this entity is initialized, if any. | from DeclaredEntity |
getName | Gets the name of this entity. | from Entity |
getPackage | Gets the package in which this entity is declared, if any. | from Entity |
getQualifiedName | Gets the qualified name of this entity, if any. | from Entity |
getScope | Gets the scope in which this entity is declared, if any. | from Entity |
getSpec | Gets the declaration specifier declaring this variable. | from DeclaredVariable |
getType | Gets the type of this entity. | from Entity |
hasLocationInfo | Holds if this element is at the specified location. The location spans column | from Entity |
hasQualifiedName | Holds if this entity is declared in a package with path | from Entity |
isParameterOf | Holds if this is the | from Parameter |
toString | Gets a textual representation of this entity. | from Entity |