MCPcopy Create free account
hub / github.com/Permify/permify / tokenTypesToStrings

Function tokenTypesToStrings

pkg/dsl/parser/parser.go:891–897  ·  view source on GitHub ↗

tokenTypesToStrings converts a slice of token types to a slice of their string representations.

(types []token.Type)

Source from the content-addressed store, hash-verified

889
890// tokenTypesToStrings converts a slice of token types to a slice of their string representations.
891func 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}

Callers 2

peekErrorMethod · 0.85
currentErrorMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected