Skip to main content Module types Copy item path Source Bound FunctionParameter FunctionType SubstitutionMap Type parameter name -> concrete type. 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. CompoundKind NumericFamily SimpleKind Type GO_IMPORT_PREFIX SELF_TYPE_NAME 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 contains_write_permission demoted Alias-aware demotion. An occurrence whose alias hides permission demotes
by expansion to the demoted underlying type. demotion_changes Whether demoted returns a different type. Must mirror demoted. 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 known packages 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. parameter_grants_write Whether a parameter of this type grants the callee write permission over
the argument’s storage. 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.