Skip to main content

Module types

Module types 

Source

Structs§

Bound
FunctionParameter
FunctionType
Symbol
Dot-qualified identifier for a named type, method, value, or variant.
TypeVarId
A unique handle identifying an inference variable in a checker’s type environment.

Enums§

CompoundKind
NumericFamily
SimpleKind
Type

Constants§

GO_IMPORT_PREFIX

Functions§

build_named_substitution_map
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.
contains_unknown
has_byte_or_rune_slice_underlying
is_aliased_numeric_type
is_nilable_go_type
True when the Go representation carries nil, so an Option over it encodes None as nil instead of a tag.
is_numeric_compatible_with
is_orderable
literal_adaptation_target
package_for_qualified_name
Resolve the package of a qualified ID. For go: IDs containing /, does a longest-prefix match against package_ids to disambiguate paths whose package segment contains dots (e.g. gopkg.in/yaml.v3). Otherwise splits on the first dot. Returns None when the id has no dot and is not a registered go: package.
peel_alias
Resolve transparent aliases from their canonical definition targets. The cycle guard defends against invalid external definitions and recovery types.
peel_alias_id
Walk an alias chain by id alone (for example during Go-name resolution).
peel_to_range_type
peel_underlying
Follow transparent aliases and newtype fields to their canonical representation. The cycle guard also makes this safe for recovery types built from invalid recursive declarations.
resolves_to_unknown
satisfies_ordered_constraint
True for Go’s cmp.Ordered set: ints, floats, strings, parameters, and named aliases over those types.
substitute
type_args_match_params
underlying_numeric_type
underlying_simple_kind
underlying_type
Return the immediate underlying type of a nominal occurrence, instantiated with that occurrence’s type arguments.
unqualified_name
Extract the unqualified name from a dot-qualified identifier.

Type Aliases§

SubstitutionMap
type param name -> type variable