tools: golang.org/x/tools/internal/lsp/analysis/undeclaredname Index | Files

package undeclaredname

import "golang.org/x/tools/internal/lsp/analysis/undeclaredname"

Package undeclaredname defines an Analyzer that applies suggested fixes to errors of the type "undeclared name: %s".

Index

Package Files

undeclared.go

Constants

const Doc = "" /* 175 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
    Name:             string(analysisinternal.UndeclaredName),
    Doc:              Doc,
    Requires:         []*analysis.Analyzer{},
    Run:              run,
    RunDespiteErrors: true,
}

func FixesError Uses

func FixesError(msg string) bool

func SuggestedFix Uses

func SuggestedFix(fset *token.FileSet, rng span.Range, content []byte, file *ast.File, _ *types.Package, _ *types.Info) (*analysis.SuggestedFix, error)

Package undeclaredname imports 10 packages (graph) and is imported by 2 packages. Updated 2020-08-05. Refresh now. Tools for package owners.