inspector

package
v0.0.0-...-cb46bc8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WithStackChecker

type WithStackChecker struct {
	// contains filtered or unexported fields
}

func New

func New(pass *analysis.Pass, withoutStackError string, withStackError string) *WithStackChecker

func (*WithStackChecker) CheckErrorReturns

func (c *WithStackChecker) CheckErrorReturns(fnNode *ast.FuncDecl)

CheckErrorReturns returns all return statements that return an error.

func (*WithStackChecker) PreorderedFuncDecl

func (c *WithStackChecker) PreorderedFuncDecl(f func(ast.Node))

Jump to

Keyboard shortcuts

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