complexity

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "complexity",
	Doc:        "pass result of complexity",
	ResultType: reflect.TypeOf(map[ast.Node]int{}),
	Requires:   []*analysis.Analyzer{inspect.Analyzer},
	Run:        run,
}

Functions

func Count

func Count(funcNode ast.Node) int

Count returns complexity of function

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL