gotools/gopls/internal/analysis/fillswitch/fillswitch.go

// Diagnose computes diagnostics for switch statements with missing cases
// overlapping with the provided start and end position of file f.
//
// If either start or end is invalid, the entire file is inspected.
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 {}