MCPcopy Index your code
hub / github.com/coder/coder / firstParamName

Function firstParamName

scripts/intxcheck/analyzer.go:575–584  ·  view source on GitHub ↗
(funcType *ast.FuncType)

Source from the content-addressed store, hash-verified

573}
574
575func firstParamName(funcType *ast.FuncType) string {
576 if funcType == nil || funcType.Params == nil || len(funcType.Params.List) == 0 {
577 return "tx"
578 }
579 first := funcType.Params.List[0]
580 if len(first.Names) == 0 {
581 return "tx"
582 }
583 return first.Names[0].Name
584}
585
586func exprString(expr ast.Expr) string {
587 if expr == nil {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected