Documentation ¶
Overview ¶
Package ctrlflow is an analysis that provides a syntactic control-flow graph (CFG) for the body of a function. It records whether a function cannot return. By itself, it does not report any diagnostics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "ctrlflow", Doc: "build a control-flow graph", URL: "https://pkg.go.dev/github.com/TBD54566975/golang-tools/go/analysis/passes/ctrlflow", Run: run, ResultType: reflect.TypeOf(new(CFGs)), FactTypes: []analysis.Fact{new(noReturn)}, Requires: []*analysis.Analyzer{inspect.Analyzer}, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.