MCPcopy Create free account
hub / github.com/nsf/gocode / get_array_len

Function get_array_len

decl.go:1122–1130  ·  view source on GitHub ↗

------------------------------------------------------------------------- Pretty printing -------------------------------------------------------------------------

(e ast.Expr)

Source from the content-addressed store, hash-verified

1120//-------------------------------------------------------------------------
1121
1122func get_array_len(e ast.Expr) string {
1123 switch t := e.(type) {
1124 case *ast.BasicLit:
1125 return string(t.Value)
1126 case *ast.Ellipsis:
1127 return "..."
1128 }
1129 return ""
1130}
1131
1132func pretty_print_type_expr(out io.Writer, e ast.Expr, canonical_aliases map[string]string) {
1133 switch t := e.(type) {

Callers 1

pretty_print_type_exprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected