analysisutils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvoidSelectorExprAnalyzer

func AvoidSelectorExprAnalyzer(analyzerName string, callExprAnalyzer, selectorExprAnalyzer *analysis.Analyzer, packagePath, typeName string) *analysis.Analyzer

AvoidSelectorExprAnalyzer returns an Analyzer for *ast.SelectorExpr to avoid

func AvoidSelectorExprRunner

func AvoidSelectorExprRunner(analyzerName string, callExprAnalyzer, selectorExprAnalyzer *analysis.Analyzer, packagePath, typeName string) func(*analysis.Pass) (interface{}, error)

AvoidSelectorExprRunner returns an Analyzer runner for *ast.SelectorExpr to avoid

func DeprecatedEmptyCallExprWithReplacementSelectorExprAnalyzer

func DeprecatedEmptyCallExprWithReplacementSelectorExprAnalyzer(analyzerName string, callExprAnalyzer, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath, oldSelectorName, newPackagePath, newSelectorName string) *analysis.Analyzer

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

func DeprecatedEmptyCallExprWithReplacementSelectorExprRunner

func DeprecatedEmptyCallExprWithReplacementSelectorExprRunner(analyzerName string, callExprAnalyzer *analysis.Analyzer, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath, oldSelectorName, newPackagePath, newSelectorName string) func(*analysis.Pass) (interface{}, error)

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

func DeprecatedReceiverMethodSelectorExprAnalyzer

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

DeprecatedReceiverMethodSelectorExprAnalyzer returns an Analyzer for deprecated *ast.SelectorExpr

func DeprecatedReceiverMethodSelectorExprRunner

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

DeprecatedReceiverMethodSelectorExprRunner returns an Analyzer runner for deprecated *ast.SelectorExpr

func DeprecatedWithReplacementPointerSelectorExprAnalyzer

func DeprecatedWithReplacementPointerSelectorExprAnalyzer(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath, oldSelectorName, newPackagePath, newSelectorName string) *analysis.Analyzer

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

func DeprecatedWithReplacementPointerSelectorExprRunner

func DeprecatedWithReplacementPointerSelectorExprRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath, oldSelectorName, newPackagePath, newSelectorName string) func(*analysis.Pass) (interface{}, error)

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

func DeprecatedWithReplacementSelectorExprAnalyzer

func DeprecatedWithReplacementSelectorExprAnalyzer(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath, oldSelectorName, newPackagePath, newSelectorName string) *analysis.Analyzer

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

func DeprecatedWithReplacementSelectorExprRunner

func DeprecatedWithReplacementSelectorExprRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath, oldSelectorName, newPackagePath, 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 SchemaAttributeReferencesAnalyzer

func SchemaAttributeReferencesAnalyzer(analyzerName string, fieldName string) *analysis.Analyzer

SchemaAttributeReferencesAnalyzer returns an Analyzer for fields that use schema attribute references

func SchemaAttributeReferencesRunner

func SchemaAttributeReferencesRunner(analyzerName string, fieldName string) func(*analysis.Pass) (interface{}, error)

SchemaAttributeReferencesRunner returns an Analyzer runner for fields that use schema attribute references

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

func StdlibFunctionCallExprAnalyzer

func StdlibFunctionCallExprAnalyzer(analyzerName string, packagePath string, functionName string) *analysis.Analyzer

StdlibFunctionCallExprAnalyzer returns an Analyzer for standard library function *ast.CallExpr

func StdlibFunctionCallExprRunner

func StdlibFunctionCallExprRunner(packagePath string, functionName string) func(*analysis.Pass) (interface{}, error)

StdlibFunctionCallExprRunner returns an Analyzer runner for function *ast.CallExpr

func StdlibFunctionSelectorExprAnalyzer

func StdlibFunctionSelectorExprAnalyzer(analyzerName string, packagePath string, functionName string) *analysis.Analyzer

StdlibFunctionSelectorExprAnalyzer returns an Analyzer for standard library function *ast.SelectorExpr

func StdlibFunctionSelectorExprRunner

func StdlibFunctionSelectorExprRunner(packagePath string, functionName string) func(*analysis.Pass) (interface{}, error)

StdlibFunctionSelectorExprRunner returns an Analyzer runner for function *ast.SelectorExpr

func TypeAssertExprAnalyzer

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

TypeAssertExprAnalyzer returns an Analyzer for *ast.TypeAssertExpr

func TypeAssertExprRemovalAnalyzer

func TypeAssertExprRemovalAnalyzer(analyzerName string, typeAssertExprAnalyzer *analysis.Analyzer, packagePath string, selectorName string) *analysis.Analyzer

TypeAssertExprRemovalAnalyzer returns an Analyzer for *ast.TypeAssertExpr

func TypeAssertExprRemovalRunner

func TypeAssertExprRemovalRunner(analyzerName string, typeAssertExprAnalyzer *analysis.Analyzer) func(*analysis.Pass) (interface{}, error)

TypeAssertExprRemovalRunner returns an Analyzer runner for removing *ast.TypeAssertExpr

func TypeAssertExprRunner

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

TypeAssertExprRunner returns an Analyzer runner for *ast.TypeAssertExpr

Types

This section is empty.

Jump to

Keyboard shortcuts

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