------------------------------------------------------------------------- Pretty printing -------------------------------------------------------------------------
(e ast.Expr)
| 1120 | //------------------------------------------------------------------------- |
| 1121 | |
| 1122 | func 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 | |
| 1132 | func pretty_print_type_expr(out io.Writer, e ast.Expr, canonical_aliases map[string]string) { |
| 1133 | switch t := e.(type) { |
no outgoing calls
no test coverage detected