Skip to main content

Module program

Module program 

Source

Re-exports§

pub use crate::ast::Visibility;

Structs§

Attributes
CheckedBodies
The records that the checker published for the bodies it checked, which no consumer changes.
CheckedBodiesBuilder
The records that the checker collects while it checks bodies, which only it changes before it publishes them.
CheckedCallee
What a callee runs and with which type arguments, as the checker selected it.
CheckedExpression
One expression occurrence with a lookup of the records the checker published for it.
CheckedMethod
CheckedStructLiteral
CheckedValueUse
The slot type of one value use, and the adaptation into it.
ConformanceIndex
ConformanceWitness
ConstructorField
ConstructorFields
Definition
ElementEquality
The equality of the elements of a container, which Go == cannot test.
EmitBindings
EmitInput
EnumVariants
EqualityIndex
FieldSelection
File
FileImport
GoInteropContract
GoMethodPolicy
GoTypeTerm
GoTypeTerms
ImportKey
Interface
InterfaceConversion
A value converted to an interface type, with the conformance the checker selected.
InterfaceInstance
InterfaceRequirement
Method
MethodName
NativeInlineRule
NativeOperation
Package
PackageId
PatternPositions
TestFunction
TestIndex
UnusedImports
Name spans of imports that no code in their file uses.
ValueUseKey
Names one value use: the occurrence that produces the value, and its role.

Enums§

Adaptation
How a value of its source type becomes a value of its slot type.
AliasKind
BindingMutation
CallOperation
The function, method or built-in operation that a callee selects.
CalleeName
ChannelOperation
ConstantValue
DefinitionBody
DotAccessResolution
What a dot access resolved to during type checking.
EqualityRecipe
How a program tests two values of one type for equality, as the checker selected it.
FieldKey
GoHint
GoOptionRepresentation
GoReturnContract
GoReturnForm
GoTypeRecipe
MethodOrigin
NativeInlineForm
NativeInlinePackage
NativeTypeKind
What kind of native built-in type (Slice, Map, Channel, etc.) a call targets. Defined here so semantics can classify calls without depending on
PatternPosition
ReceiverCoercion
SlotOrigin
SourceFileKind
TypeAttribute
UninferredExports
ValueKind

Constants§

GO_IMPORT_PREFIX
PRELUDE_PACKAGE_ID
PRELUDE_PREFIX

Functions§

channel_operation
constructor_fields
go_boundary_converts_container
go_filename
go_import_default_name
go_option_representation
go_return_contract
go_return_form
interface_declares_any_method
Whether an interface or any of its parents declares a method.
interface_instances
Instantiate an interface and its complete parent hierarchy exactly once. Package-qualified structural identity prevents same-named interfaces from collapsing, while the active path guard terminates malformed cycles.
interface_method_is_tagged
interface_requirements
Flatten an interface and its instantiated parents into declaration-tagged method requirements. Cycles and repeated generic instantiations are handled here so registration, inference, and emission cannot disagree about the inherited signatures.
is_go_import
is_internal_package_id
is_prelude_symbol
is_test_file
method_for_type
method_lookup_key
methods_for_type
Resolve the complete method set for a type, including inherited and alias methods.
prelude_constructor
The prelude enum and member an expression resolves to, as ("prelude.Option", "None").
requirement_uses_tagged_counterpart
resolved_callee
resolved_definition_name
resolved_instantiation
strip_go_prefix
strip_prelude_prefix
suggested_import_alias
supplying_requirement
type_has_any_method
unaliased_binding_name

Type Aliases§

Methods