MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / exprString

Function exprString

plugins/ast/golang/main.go:485–498  ·  view source on GitHub ↗
(e ast.Expr)

Source from the content-addressed store, hash-verified

483}
484
485func exprString(e ast.Expr) string {
486 switch t := e.(type) {
487 case *ast.Ident:
488 return t.Name
489 case *ast.SelectorExpr:
490 return exprString(t.X) + "." + t.Sel.Name
491 case *ast.StarExpr:
492 return exprString(t.X)
493 case *ast.ArrayType:
494 return "[]" + exprString(t.Elt)
495 default:
496 return "unknown"
497 }
498}
499
500// ─── imports ───
501

Callers 1

extractGormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected