2 instantiations of TokenInfo
System.Private.Xml (2)
System\Xml\Xsl\Runtime\XslNumber.cs (2)
34TokenInfo token = new TokenInfo(); 51TokenInfo token = new TokenInfo();
17 references to TokenInfo
System.Private.Xml (17)
System\Xml\Xsl\Runtime\XslNumber.cs (17)
31public static TokenInfo CreateSeparator(string formatString, int startIdx, int tokLen) 34TokenInfo token = new TokenInfo(); 48public static TokenInfo CreateFormat(string formatString, int startIdx, int tokLen) 51TokenInfo token = new TokenInfo(); 119private readonly List<TokenInfo?>? _tokens; 122private static readonly TokenInfo s_defaultFormat = TokenInfo.CreateFormat("0", 0, 1); 123private static readonly TokenInfo s_defaultSeparator = TokenInfo.CreateSeparator(".", 0, 1); 141_tokens = new List<TokenInfo?>(); 159_tokens.Add(TokenInfo.CreateFormat(formatString, idxStart, idx - idxStart)); 164_tokens.Add(TokenInfo.CreateSeparator(formatString, idxStart, idx - idxStart)); 213TokenInfo? prefix = _tokens[0], suffix; 224TokenInfo? periodicSeparator = 2 < cFormats ? _tokens[cFormats - 2] : s_defaultSeparator; 225TokenInfo? periodicFormat = 0 < cFormats ? _tokens[cFormats - 1] : s_defaultFormat; 241TokenInfo? thisSeparator = haveFormat ? _tokens[formatIndex + 0] : periodicSeparator; 246TokenInfo? thisFormat = haveFormat ? _tokens[formatIndex + 1] : periodicFormat;