tools: Index | Files | Directories

package findcall

import ""

Package findcall 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. It also exports a fact for each declaration that matches the name, plus a package-level fact if the package contained one or more such declarations.


Package Files



const Doc = `find calls to a particular function

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


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


cmd/findcallThe findcall command runs the findcall analyzer.

Package findcall imports 4 packages (graph) and is imported by 2 packages. Updated 2020-10-19. Refresh now. Tools for package owners.