Discover Packages
github.com/april1989/origin-go-tools
go
analysis
passes
ctrlflow
package
Version:
v0.0.32
Opens a new window with list of versions in this module.
Published: May 13, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
A CFGs holds the control-flow graphs
for all the functions of the current package.
FuncDecl returns the control-flow graph for a named function.
It returns nil if decl.Body==nil.
FuncLit returns the control-flow graph for a literal function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.