Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { // DeclarationType represents the type of the field declaration. DeclarationType TypeName // Name represents the name of the field. Name string // Type represents the type of the field. Type TypeName }
Field represents a field in a type.
func (*Field) GetDeclarationType ¶
type Method ¶
type Method struct { DeclarationType TypeName Name string Parameters []Parameter Results []Parameter TypeParameters []Parameter }
func (*Method) GetDeclarationType ¶
type Package ¶
type Package struct { Name PackageName Types []*Type // contains filtered or unexported fields }
func (*Package) ResolveType ¶
ResolveType resolves a type by name within the package. It searches for a type with a matching name in the package's list of types. If a matching type is found, it returns a pointer to the type. Otherwise, it returns nil.
type PackageName ¶
type PackageName string
type Scope ¶
type Scope struct { Packages map[PackageName]*Package Types map[TypeName]*Type }
func NewScope ¶
func NewScope() *Scope
NewScope returns a new instance of Scope. It creates an empty scope with initialized maps for Packages and Types.
func (*Scope) AddPackage ¶
type Type ¶
type Type struct { Name TypeName Members []TypeMember }
type TypeMember ¶
Click to show internal directories.
Click to hide internal directories.