tools: golang.org/x/tools/go/analysis/passes/findcall Index | Files | Directories

package findcall

import "golang.org/x/tools/go/analysis/passes/findcall"

The findcall package defines an Analyzer that serves as a trivial example and test of the Analysis API. It reports a diagnostic for every call to a function or method of the name specified by its -name flag.

Index

Package Files

findcall.go

Constants

const Doc = `find calls to a particular function

The findcall analysis reports calls to functions or methods
of a particular name.`

Variables

var Analyzer = &analysis.Analyzer{
    Name:             "findcall",
    Doc:              Doc,
    Run:              run,
    RunDespiteErrors: true,
    FactTypes:        []analysis.Fact{new(foundFact)},
}

Directories

PathSynopsis
cmd/findcallThe findcall command runs the findcall analyzer.

Package findcall imports 3 packages (graph) and is imported by 1 packages. Updated 2019-05-24. Refresh now. Tools for package owners.