Skip to main content

Module program

Module program 

Source

Re-exports§

pub use crate::ast::Visibility;

Structs§

Attributes
Definition
EmitBindings
EmitInput
EqualityIndex
File
FileImport
Interface
InterfaceInstance
InterfaceRequirement
Method
Package
PackageId
TestFunction
TestIndex
UnusedInfo
Name spans of unreachable functions and imports (imports keyed by path span).

Enums§

AliasKind
BindingMutation
CallKind
What a call expression resolved to during type checking.
ChannelOperation
ConstantValue
DefinitionBody
DotAccessResolution
What a dot access resolved to during type checking.
MethodOrigin
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
ReceiverCoercion
TypeAttribute
UninferredExports
ValueKind

Functions§

channel_operation
go_import_default_name
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_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_internal_package_id
is_test_file
method_for_type
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").
resolved_definition
resolved_instantiation
type_has_any_method
unaliased_binding_name

Type Aliases§

Methods