Function tokenStringRepresentation

Looks up the string representation of the given token type.

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

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

Parameters

NameDescription
type the token type identifier

Examples

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

See also

TokenId