Documentation
¶
Overview ¶
Package infertypeargs defines an analyzer that checks for explicit function arguments that could be inferred.
Index ¶
Constants ¶
View Source
const Doc = `` /* 284-byte string literal not displayed */
Variables ¶
Functions ¶
func DiagnoseInferableTypeArgs ¶
func DiagnoseInferableTypeArgs(fset *token.FileSet, inspect *inspector.Inspector, start, end token.Pos, pkg *types.Package, info *types.Info) []analysis.Diagnostic
DiagnoseInferableTypeArgs reports diagnostics describing simplifications to type arguments overlapping with the provided start and end position.
If start or end is token.NoPos, the corresponding bound is not checked (i.e. if both start and end are NoPos, all call expressions are considered).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.