analysisutils

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MPL-2.0 Imports: 8 Imported by: 109

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecatedReceiverMethodSelectorExprAnalyzer

func DeprecatedReceiverMethodSelectorExprAnalyzer(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, packageName, typeName, methodName string) *analysis.Analyzer

DeprecatedReceiverMethodSelectorExprAnalyzer returns an Analyzer for deprecated *ast.SelectorExpr

func DeprecatedReceiverMethodSelectorExprRunner

func DeprecatedReceiverMethodSelectorExprRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, packageName, typeName, methodName string) func(*analysis.Pass) (interface{}, error)

DeprecatedReceiverMethodSelectorExprRunner returns an Analyzer runner for deprecated *ast.SelectorExpr

func DeprecatedWithReplacementSelectorExprAnalyzer

func DeprecatedWithReplacementSelectorExprAnalyzer(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackageName, oldSelectorName, newPackageName, newSelectorName string) *analysis.Analyzer

DeprecatedWithReplacementSelectorExprAnalyzer returns an Analyzer for deprecated *ast.SelectorExpr with replacement

func DeprecatedWithReplacementSelectorExprRunner

func DeprecatedWithReplacementSelectorExprRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackageName, oldSelectorName, newPackageName, newSelectorName string) func(*analysis.Pass) (interface{}, error)

DeprecatedWithReplacementSelectorExprRunner returns an Analyzer runner for deprecated *ast.SelectorExpr with replacement

func FunctionCallExprAnalyzer

func FunctionCallExprAnalyzer(analyzerName string, packageFunc func(ast.Expr, *types.Info, string) bool, packagePath string, functionName string) *analysis.Analyzer

FunctionCallExprAnalyzer returns an Analyzer for function *ast.CallExpr

func FunctionCallExprRunner

func FunctionCallExprRunner(packageFunc func(ast.Expr, *types.Info, string) bool, functionName string) func(*analysis.Pass) (interface{}, error)

FunctionCallExprRunner returns an Analyzer runner for function *ast.CallExpr

func ReceiverMethodAssignStmtAnalyzer

func ReceiverMethodAssignStmtAnalyzer(analyzerName string, packageReceiverMethodFunc func(ast.Expr, *types.Info, string, string) bool, packagePath string, receiverName string, methodName string) *analysis.Analyzer

ReceiverMethodAssignStmtAnalyzer returns an Analyzer for receiver method *ast.AssignStmt

func ReceiverMethodAssignStmtRunner

func ReceiverMethodAssignStmtRunner(packageReceiverMethodFunc func(ast.Expr, *types.Info, string, string) bool, receiverName string, methodName string) func(*analysis.Pass) (interface{}, error)

ReceiverMethodAssignStmtRunner returns an Analyzer runner for receiver method *ast.AssignStmt

func ReceiverMethodCallExprAnalyzer

func ReceiverMethodCallExprAnalyzer(analyzerName string, packageReceiverMethodFunc func(ast.Expr, *types.Info, string, string) bool, packagePath string, receiverName string, methodName string) *analysis.Analyzer

ReceiverMethodCallExprAnalyzer returns an Analyzer for receiver method *ast.CallExpr

func ReceiverMethodCallExprRunner

func ReceiverMethodCallExprRunner(packageReceiverMethodFunc func(ast.Expr, *types.Info, string, string) bool, receiverName string, methodName string) func(*analysis.Pass) (interface{}, error)

ReceiverMethodCallExprRunner returns an Analyzer runner for receiver method *ast.CallExpr

func ReceiverMethodSelectorExprAnalyzer

func ReceiverMethodSelectorExprAnalyzer(analyzerName string, packageReceiverMethodFunc func(ast.Expr, *types.Info, string, string) bool, packagePath string, receiverName string, methodName string) *analysis.Analyzer

ReceiverMethodSelectorExprAnalyzer returns an Analyzer for receiver method *ast.SelectorExpr

func ReceiverMethodSelectorExprRunner

func ReceiverMethodSelectorExprRunner(packageReceiverMethodFunc func(ast.Expr, *types.Info, string, string) bool, receiverName string, methodName string) func(*analysis.Pass) (interface{}, error)

ReceiverMethodSelectorExprRunner returns an Analyzer runner for receiver method *ast.SelectorExpr

func SelectorExprAnalyzer

func SelectorExprAnalyzer(analyzerName string, packageFunc func(ast.Expr, *types.Info, string) bool, packagePath string, selectorName string) *analysis.Analyzer

SelectorExprAnalyzer returns an Analyzer for *ast.SelectorExpr

func SelectorExprRunner

func SelectorExprRunner(packageFunc func(ast.Expr, *types.Info, string) bool, selectorName string) func(*analysis.Pass) (interface{}, error)

SelectorExprRunner returns an Analyzer runner for *ast.SelectorExpr

Types

This section is empty.

Jump to

Keyboard shortcuts

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