tokenStringRepresentation

Looks up the string representation of the given token type.

This is the opposite of the function of the TokenId template.

pure nothrow @property @nogc @safe
string
tokenStringRepresentation
(
IdType
alias staticTokens
alias dynamicTokens
alias possibleDefaultTokens
)
(
IdType type
)

Examples

alias str = tokenStringRepresentation(IdType, staticTokens, dynamicTokens, possibleDefaultTokens);
assert (str(tok!"*") == "*");

See Also

Meta