Skip to main content

Module program

Module program 

Source

Re-exports§

pub use crate::ast::Visibility;

Structs§

Attributes
Definition
EmitInput
EqualityIndex
File
FileImport
Interface
InterfaceInstance
InterfaceRequirement
Method
MutationInfo
Package
PackageId
TestFunction
TestIndex
UnusedInfo

Enums§

AliasKind
BindingMutation
CallKind
What a call expression resolved to during type checking.
ChannelOperation
ConstantValue
DefinitionBody
DotAccessKind
What a dot access resolved to during type checking.
DotAccessResolution
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 emit-specific types. The emitter maps this to its internal NativeGoType.
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.
resolved_definition
type_has_any_method
unaliased_binding_name

Type Aliases§

Methods