MCPcopy Create free account

hub / github.com/alexkohler/nargs / functions

Functions40 in github.com/alexkohler/nargs

↓ 16 callersMethodhandleExprs
(paramMap map[string]bool, exprList []ast.Expr, stmtList []ast.Stmt)
nargs.go:292
↓ 6 callersFunctionhandleIdent
(paramMap map[string]bool, ident *ast.Ident)
nargs.go:269
↓ 3 callersFunctionhandleFieldList
( paramMap map[string]bool, fieldList *ast.FieldList, exprList []ast.Expr, stmtList []ast.Stmt, )
nargs.go:383
↓ 3 callersMethodhandleStmts
(paramMap map[string]bool, stmtList []ast.Stmt)
nargs.go:160
↓ 2 callersFunctionCheckForUnusedFunctionArgs
CheckForUnusedFunctionArgs will parse the files/packages contained in args and walk the AST searching for unused function parameters.
nargs.go:41
↓ 2 callersFunctionallPackages
allPackages returns all the packages that can be found under the $GOPATH directories and $GOROOT matching pattern. The pattern is either "all" (all pa
import.go:226
↓ 2 callersFunctionallPackagesInFS
allPackagesInFS is like allPackages but is passed a pattern beginning ./ or ../, meaning it should scan the tree rooted at the given directory. There
import.go:338
↓ 2 callersMethodhandleDecls
(paramMap map[string]bool, decls []ast.Decl, initialStmts []ast.Stmt)
nargs.go:400
↓ 2 callersMethodhandleFuncDecl
( paramMap map[string]bool, funcDecl *ast.FuncDecl, initialStmts []ast.Stmt, )
nargs.go:479
↓ 2 callersMethodhandleFuncLit
paramMap is passed in for cases where we have an outer function with a parameter that is captured by closure by the function literal
nargs.go:445
↓ 2 callersFunctionhandleIdents
(paramMap map[string]bool, identList []*ast.Ident)
nargs.go:263
↓ 2 callersFunctionisDir
(filename string)
import.go:113
↓ 2 callersFunctionmatchPattern
matchPattern(pattern)(name) reports whether name matches pattern. Pattern is a limited glob pattern in which '...' means 'any string' and there is no
import.go:178
↓ 1 callersFunctionexists
(filename string)
import.go:118
↓ 1 callersFunctionhasPathPrefix
hasPathPrefix reports whether the path s begins with the elements in prefix.
import.go:193
↓ 1 callersFunctionimportPaths
importPaths returns the import paths to use for the given command line.
import.go:157
↓ 1 callersFunctionimportPathsNoDotExpansion
importPathsNoDotExpansion returns the import paths to use for the given command line, but it does no ... expansion.
import.go:125
↓ 1 callersFunctionmatchPackages
(pattern string)
import.go:234
↓ 1 callersFunctionmatchPackagesInFS
(pattern string)
import.go:346
↓ 1 callersFunctionparseInput
(args []string, fset *token.FileSet, includeTests bool)
import.go:29
↓ 1 callersFunctiontreeCanMatchPattern
treeCanMatchPattern(pattern)(name) reports whether name or children of name can possibly match pattern. Pattern is the same limited glob accepted by m
import.go:210
FunctionFuncVars
(x int)
testdata/success.go:9
MethodLen
()
nargs.go:80
MethodLess
(i, j int)
nargs.go:81
MethodSwap
(i, j int)
nargs.go:91
FunctionTestCheckForUnusedFunctionArgs
(t *testing.T)
nargs_test.go:8
MethodVisit
Visit implements the ast.Visitor Visit method.
nargs.go:94
FunctionfuncFour
Unused named returns. Unused named returns are NOT flagged by deault. Flagging unused named returns can be enabled by setting the -named_returns flag
testdata/test.go:25
FunctionfuncOne
Unused function parameter on function
testdata/test.go:6
MethodfuncThree
Unused function receiver. Unused receivers are NOT flagged by default. Flagging unused function receivers can be enabled by setting the -receivers fla
testdata/test.go:19
MethodfuncTwo
(x int, y int, z int)
testdata/test.go:13
Functioninit
()
nargs.go:14
Functionmain
()
testdata/success.go:5
Functionmain
()
cmd/nargs/main.go:19
FunctionnewTypePair
()
testdata/success.go:16
FunctiontestIndexListExpr
()
testdata/success.go:19
FunctionunusedClosureParamInsideFunction
Unused closure parameters inside function
testdata/test.go:30
FunctionunusedFunc
Unused function as parameter
testdata/test.go:39
Functionusage
()
cmd/nargs/main.go:11
FunctionvariableCapturedByClosure
(r int)
testdata/test.go:47