internal static string ToSerializedValue(this TokenCharacterKind value) { switch (value) { case TokenCharacterKind.Letter: return("letter"); case TokenCharacterKind.Digit: return("digit"); case TokenCharacterKind.Whitespace: return("whitespace"); case TokenCharacterKind.Punctuation: return("punctuation"); case TokenCharacterKind.Symbol: return("symbol"); } return(null); }
public static string ToSerialString(this TokenCharacterKind value) => value switch {