Back to godoc.org

Package findcall

v0.0.0-...-c9a70fc
Latest Go to latest

The latest major version is .

Published: Sep 16, 2020 | License: BSD-3-Clause | Module: golang.org/x/tools

Overview

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.

Index

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)},
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier