Documentation ¶
Index ¶
- func DeprecatedSelectorExprWithReplacementAstNodeRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, ...) func(*analysis.Pass) (interface{}, error)
- func DeprecatedWithReplacementPointerSelectorExprAnalyzer(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, ...) *analysis.Analyzer
- func DeprecatedWithReplacementPointerSelectorExprRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, ...) func(*analysis.Pass) (interface{}, error)
- func TypeAssertExprAnalyzer(analyzerName string, packageFunc func(ast.Expr, *types.Info, string) bool, ...) *analysis.Analyzer
- func TypeAssertExprRemovalAnalyzer(analyzerName string, typeAssertExprAnalyzer *analysis.Analyzer, ...) *analysis.Analyzer
- func TypeAssertExprRemovalRunner(analyzerName string, typeAssertExprAnalyzer *analysis.Analyzer) func(*analysis.Pass) (interface{}, error)
- func TypeAssertExprRunner(packageFunc func(ast.Expr, *types.Info, string) bool, selectorName string) func(*analysis.Pass) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeprecatedSelectorExprWithReplacementAstNodeRunner ¶
func DeprecatedSelectorExprWithReplacementAstNodeRunner(analyzerName string, selectorExprAnalyzer *analysis.Analyzer, oldPackagePath string, oldSelectorName string, newNode ast.Node) func(*analysis.Pass) (interface{}, error)
DeprecatedSelectorExprWithReplacementAstNodeRunner returns an Analyzer runner for deprecated *ast.SelectorExpr with replacement AST This function covers cases where replacement requires custom AST handling, which can be done prior to this function.
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 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
Types ¶
This section is empty.