analysisutils

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MPL-2.0 Imports: 15 Imported by: 109

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecatedEmptyCallExprWithReplacementSelectorExprAnalyzer added in v0.13.0

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 added in v0.13.0

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 added in v0.14.0

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 added in v0.14.0

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 added in v0.12.0

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

SchemaAttributeReferencesAnalyzer returns an Analyzer for fields that use schema attribute references

func SchemaAttributeReferencesRunner added in v0.12.0

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 TypeAssertExprAnalyzer added in v0.14.0

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 added in v0.14.0

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

TypeAssertExprRemovalAnalyzer returns an Analyzer for *ast.TypeAssertExpr

func TypeAssertExprRemovalRunner added in v0.14.0

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

TypeAssertExprRemovalRunner returns an Analyzer runner for removing *ast.TypeAssertExpr

func TypeAssertExprRunner added in v0.14.0

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