exhaustinterface

package module
v0.0.0-...-e4aa558 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 7 Imported by: 0

README

exhaustinterface

Checks exhaustiveness of type-switch for interface values.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "exhaustinterface",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
		SealedInstanceFinder,
	},
}
View Source
var SealedInstanceFinder = &analysis.Analyzer{
	Name: "sealedinstancefinder",
	Doc:  doc,
	Run:  findSealedInstances,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
		SealedInterfaceFinder,
	},
	ResultType: reflect.TypeOf(make(map[*types.Interface][]types.Type)),
}
View Source
var SealedInterfaceFinder = &analysis.Analyzer{
	Name: "sealedinterfacefinder",
	Doc:  doc,
	Run:  findSealedInterfaces,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
	ResultType: reflect.TypeOf([]*types.Interface{}),
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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