Documentation
¶
Index ¶
- func BuildConstructorIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry
- func BuildImmutableTypesIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypesMap
- func BuildMutableFieldsIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry
- func BuildPackageOnlyIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) *util.AttachmentsMap
- func BuildTestOnlyFuncsIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry
- func BuildTestOnlyMethodsIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypeAssociationRegistry
- func BuildTestOnlyTypesIndex[T annotations.AnnotationWrapper](pass *analysis.Pass, packageAnnotations *annotations.PackageAnnotations) util.TypesMap
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.