indexing

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConstructorIndex

func BuildConstructorIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry

BuildConstructorIndex creates an index of constructor functions for types FIXME do we really need this? there's a strong hypothesis that we only need packageAnnotations of the specific package TODO think about whether we can delete this or significantly simplify it

func BuildImmutableTypesIndex

func BuildImmutableTypesIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypesMap

BuildImmutableTypesIndex creates an index of immutable types from current and imported packages

func BuildMutableFieldsIndex

func BuildMutableFieldsIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry

BuildMutableFieldsIndex creates an index of @mutable fields in @immutable types Returns a map: packageName -> typeName -> []fieldNames

func BuildPackageOnlyIndex

func BuildPackageOnlyIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) *util.AttachmentsMap

BuildPackageOnlyIndex creates an AttachmentsMap of @packageonly annotations from current and imported packages

func BuildTestOnlyFuncsIndex

func BuildTestOnlyFuncsIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry

BuildTestOnlyFuncsIndex creates an index of @testonly functions from current and imported packages

func BuildTestOnlyMethodsIndex

func BuildTestOnlyMethodsIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry

BuildTestOnlyMethodsIndex creates an index of @testonly methods from current and imported packages

func BuildTestOnlyTypesIndex

func BuildTestOnlyTypesIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypesMap

BuildTestOnlyTypesIndex creates an index of @testonly types from current and imported packages

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL