Structs§
- Bound
- Function
Type - Symbol
- Dot-qualified identifier for a named type, method, value, or variant.
- Type
VarId - A unique handle identifying a type variable. The binding state (Unbound /
Bound-to-a-Type) lives in a
TypeEnvowned by the checker; the handle is a plain id soTypestays a pure value (Clone, Eq, Hash, Serialize).
Enums§
Constants§
Functions§
- build_
substitution_ map - Build a substitution map from a list of generics and their type arguments, pairing each generic’s name with the type at the same position.
- is_
nilable_ go_ type - is_
range_ type_ name - module_
for_ qualified_ name - Resolve the module of a qualified ID. For
go:IDs containing/, does a longest-prefix match againstmodule_idsto disambiguate paths whose module segment contains dots (e.g.gopkg.in/yaml.v3). Otherwise splits on the first dot. ReturnsNonewhen the id has no dot and is not a registeredgo:module. - peel_
alias - Walk an alias chain via
underlying_ty(preserves substitution); cycle guard defends against chains that slip pastcircular_type_alias. - peel_
alias_ id - Walk an alias chain by id alone; used when no
Typewithunderlying_tyis available (e.g. Go-name resolution). - peel_
to_ range_ type - substitute
- type_
args_ match_ params - unqualified_
name - Extract the unqualified name from a dot-qualified identifier.
Type Aliases§
- Substitution
Map - type param name -> type variable