tools: Index | Files

package undeclaredname

import ""

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


Package Files



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


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 2021-01-16. Refresh now. Tools for package owners.