Class PromotedField
A field that belongs to a struct that may be embedded within another struct.
When a selector addresses such a field, it is possible it is implicitly addressing a nested struct.
Import path
import semmle.go.ScopesDirect supertypes
Indirect supertypes
Inherited fields
| declaringType | from Field |
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 |
| getDeclaringType | Gets the struct type declaring this field. | from Field |
| getLocation | Gets the location of this entity. | from Entity |
| getName | Gets the name of this entity. | from Entity |
| getPackage | Gets the package in which this entity is declared, if any. | from Field |
| 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 |
| getTag | Gets the tag associated with this field, or the empty string if this field has no tag. | from Field |
| getType | Gets the type of this entity. | from Entity |
| hasLocationInfo | DEPRECATED: Use | from Entity |
| hasQualifiedName | Holds if this field has name | from Field |
| hasQualifiedName | Holds if this field has name | from Field |
| toString | Gets a textual representation of this entity. | from Entity |