gotools/gopls/internal/analysis/unusedvariable/unusedvariable.go

const Doc

var Analyzer

var unusedVariableRegexp

func run(pass *analysis.Pass) (interface{}

func runForError(pass *analysis.Pass, err types.Error, name string) error {}

func removeVariableFromSpec(pass *analysis.Pass, path []ast.Node, stmt *ast.ValueSpec, decl *ast.GenDecl, ident *ast.Ident) []analysis.SuggestedFix {}

func removeVariableFromAssignment(path []ast.Node, stmt *ast.AssignStmt, ident *ast.Ident) []analysis.SuggestedFix {}

func suggestedFixMessage(name string) string {}

func deleteStmtFromBlock(path []ast.Node, stmt ast.Stmt) []analysis.TextEdit {}

// exprMayHaveSideEffects reports whether the expression may have side effects
// (because it contains a function call or channel receive). We disregard
// runtime panics as well written programs should not encounter them.
func exprMayHaveSideEffects(expr ast.Expr) bool {}