MCPcopy Create free account

hub / github.com/PioneerIncubator/betterGo / functions

Functions71 in github.com/PioneerIncubator/betterGo

↓ 11 callersFunctionGetExprStr
(fset *token.FileSet, expr interface{})
translator/expr.go:87
↓ 5 callersFunctionGetBasicLitType
(expr *ast.BasicLit)
translator/var.go:56
↓ 5 callersFunctionreflectType
(fset *token.FileSet, arg interface{})
translator/var.go:94
↓ 3 callersFunctionDecorateParamName
(name string)
translator/parse_fun.go:43
↓ 3 callersFunctionExtractParamsTypeAndName
(fset *token.FileSet, listOfArgs []ast.Expr)
translator/expr.go:14
↓ 3 callersFunctionReduce
Reduce computes the reduction of the pair function across the elements of the slice. (If the types of the slice and function do not correspond, Reduce
enum/reduce.go:19
↓ 2 callersFunctionDelete
(slice, anonymousFunc interface{})
enum/delete.go:9
↓ 2 callersFunctionFind
(slice, anonymousFunc interface{})
enum/find.go:9
↓ 2 callersFunctionGenCallExpr
Generate function calling statement by funName and arguments
fileoperations/replace.go:16
↓ 2 callersFunctionGetAssertType
()
translator/var.go:23
↓ 2 callersFunctionMax
(slice interface{})
enum/max.go:9
↓ 2 callersFunctionMin
(slice interface{})
enum/min.go:9
↓ 2 callersFunctionReplaceOriginFuncByFile
(file, origin, target string)
fileoperations/replace.go:39
↓ 2 callersFunctionSum
(slice interface{})
enum/sum.go:9
↓ 2 callersFunctioncheckFileExists
(filePath string)
fileoperations/genFunc.go:16
↓ 2 callersFunctionloopASTNode
func isFunction() { }
main.go:65
↓ 2 callersFunctionreadFile
Read the file line by line to match origin and replace by target
fileoperations/replace.go:104
↓ 2 callersFunctionreplaceOriginFunc
(fset *token.FileSet, ret *ast.CallExpr, callFunExpr, newFunName, filePath string, isDir bool)
main.go:19
↓ 2 callersFunctiontestMap
(origin, expect []int, fn func(int) int)
test/map/map.go:20
↓ 2 callersFunctionwriteCallExprToFile
Write target function calling statement to the file
fileoperations/replace.go:147
↓ 1 callersFunctionAdd
(a, b interface{})
enum/add.go:7
↓ 1 callersFunctionCheckFuncExists
(filePath string, listOfArgTypes []string)
fileoperations/genFunc.go:23
↓ 1 callersFunctionGenEnumFunctionDecl
(fset *token.FileSet, funName string, listOfArgs []ast.Expr)
translator/gen_fun_call.go:134
↓ 1 callersFunctionGetFuncType
(fset *token.FileSet, ret *ast.FuncDecl)
translator/parse_fun.go:63
↓ 1 callersFunctionIncrementString
(str string, separator string, first int)
utils/utils.go:10
↓ 1 callersFunctionMap
(slice, anonymousFunc interface{})
enum/map.go:9
↓ 1 callersFunctionRecordAssertType
(input string)
translator/var.go:15
↓ 1 callersFunctionRecordAssignVarType
(fset *token.FileSet, ret *ast.AssignStmt)
translator/var.go:27
↓ 1 callersFunctionRecordDeclVarType
(fset *token.FileSet, ret *ast.ValueSpec)
translator/var.go:70
↓ 1 callersFunctionReplaceOriginFuncByDir
(path, origin, target string)
fileoperations/replace.go:71
↓ 1 callersFunctionTestDeleteInts
()
test/delete/delete.go:24
↓ 1 callersFunctionTestDeleteStrings
()
test/delete/delete.go:14
↓ 1 callersFunctionTestFindInts
()
test/find/find.go:24
↓ 1 callersFunctionTestFindStrings
()
test/find/find.go:14
↓ 1 callersFunctionTestMaxFloats
()
test/max/max.go:18
↓ 1 callersFunctionTestMaxInts
()
test/max/max.go:8
↓ 1 callersFunctionTestMinFloats
()
test/min/min.go:19
↓ 1 callersFunctionTestMinInts
()
test/min/min.go:9
↓ 1 callersFunctionTestSumFloats
()
test/sum/sum.go:19
↓ 1 callersFunctionTestSumInts
()
test/sum/sum.go:9
↓ 1 callersFunctionWriteFuncToFile
(filePath, packageName string, input []byte)
fileoperations/genFunc.go:137
↓ 1 callersFunctionensureDirExists
(filePath string)
fileoperations/genFunc.go:103
↓ 1 callersFunctionensureFileExists
(filePath string)
fileoperations/genFunc.go:116
↓ 1 callersFunctionextractParamsName
(listOfArgs []ast.Expr)
translator/gen_fun_call.go:10
↓ 1 callersFunctiongenFunctionBody
func Reduce(argname_1 []int, argname_2 func (int, int, string)int, argname_3 int) int
translator/gen_fun_call.go:24
↓ 1 callersFunctiongenTargetFuncImplement
(fset *token.FileSet, ret *ast.CallExpr, callFunExpr, funDeclStr string)
main.go:36
↓ 1 callersFunctiongetFiles
(path string)
fileoperations/replace.go:170
↓ 1 callersFunctiongetFunParamListRawStr
(fset *token.FileSet, ret *ast.FuncDecl)
translator/parse_fun.go:10
↓ 1 callersFunctiongetFunRetListRawStr
(fset *token.FileSet, ret *ast.FuncDecl)
translator/parse_fun.go:23
↓ 1 callersFunctiongetFuncNameFromLine
(line []byte)
fileoperations/genFunc.go:91
↓ 1 callersFunctiongoodFunc
goodFunc verifies that the function satisfies the signature, represented as a slice of types. The last type is the single result type; the others are
enum/util.go:8
↓ 1 callersFunctionloopASTDir
(filePath string, rewriteAndGen bool)
main.go:150
↓ 1 callersFunctionloopASTFile
(filePath string, rewriteAndGen bool)
main.go:138
↓ 1 callersFunctionmatchFunc
(filePath, origin string)
fileoperations/genFunc.go:59
↓ 1 callersFunctionrecordParamType
(fset *token.FileSet, ret *ast.FuncType)
translator/parse_fun.go:47
↓ 1 callersFunctionreplaceOriginImport
(file, origin, target string)
fileoperations/replace.go:81
↓ 1 callersFunctiontestINT
()
test/reduce/main.go:14
FunctionTestReduce
(t *testing.T)
enum/reduce_test.go:11
Functionmain
()
main.go:167
Functionmain
()
test/reduce/main.go:31
Functionmain
()
test/min/min.go:29
Functionmain
()
test/sum/sum.go:29
Functionmain
()
test/delete/delete.go:9
Functionmain
()
test/map/map.go:37
Functionmain
()
test/max/max.go:27
Functionmain
()
test/find/find.go:9
Functionmul
(a, b int)
test/reduce/main.go:9
Functionmul
(a, b int)
enum/reduce_test.go:7
FunctionrandomFn
(origin int)
test/map/map.go:9
FunctionuseAdd
()
test/add.go:9
FunctionvarTestFn
(origin int)
test/map/map.go:15