tokenTypesToStrings converts a slice of token types to a slice of their string representations.
(types []token.Type)
| 889 | |
| 890 | // tokenTypesToStrings converts a slice of token types to a slice of their string representations. |
| 891 | func tokenTypesToStrings(types []token.Type) []string { |
| 892 | strs := make([]string, len(types)) |
| 893 | for i, t := range types { |
| 894 | strs[i] = t.String() |
| 895 | } |
| 896 | return strs |
| 897 | } |
no test coverage detected