Class Entity
A declared or built-in entity (that is, package, type, constant, variable, function or label)
Import path
import semmle.go.ScopesDirect supertypes
Known direct subtypes
Predicates
| getAReference | Gets a reference to this entity. |
| getDeclaration | Gets the declaring identifier for this entity, if any. |
| getLocation | Gets the location of this entity. |
| getName | Gets the name of this entity. |
| getPackage | Gets the package in which this entity is declared, if any. |
| getQualifiedName | Gets the qualified name of this entity, if any. |
| getScope | Gets the scope in which this entity is declared, if any. |
| getType | Gets the type of this entity. |
| hasLocationInfo | DEPRECATED: Use |
| hasQualifiedName | Holds if this entity is declared in a package with path |
| toString | Gets a textual representation of this entity. |