func Diagnose(f *ast.File, start, end token.Pos, pkg *types.Package, info *types.Info) []analysis.Diagnostic { … }
func suggestedFixTypeSwitch(stmt *ast.TypeSwitchStmt, pkg *types.Package, info *types.Info) *analysis.SuggestedFix { … }
func suggestedFixSwitch(stmt *ast.SwitchStmt, pkg *types.Package, info *types.Info) *analysis.SuggestedFix { … }
func addDefaultCase(buf *bytes.Buffer, named *types.Named, expr ast.Expr) { … }
func namedTypeFromTypeSwitch(stmt *ast.TypeSwitchStmt, info *types.Info) *types.Named { … }
func hasDefaultCase(body *ast.BlockStmt) bool { … }
func caseConsts(body *ast.BlockStmt, info *types.Info) map[*types.Const]bool { … }
type caseType …
func caseTypes(body *ast.BlockStmt, info *types.Info) map[caseType]bool { … }