431 references to Token
System.Private.Xml (431)
System\Xml\Schema\DtdParser.cs (243)
208Debug.Assert((int)Token.CDATA == (int)XmlTokenizedType.CDATA && (int)XmlTokenizedType.CDATA == 0); 209Debug.Assert((int)Token.ID == (int)XmlTokenizedType.ID && (int)XmlTokenizedType.ID == 1); 210Debug.Assert((int)Token.IDREF == (int)XmlTokenizedType.IDREF && (int)XmlTokenizedType.IDREF == 2); 211Debug.Assert((int)Token.IDREFS == (int)XmlTokenizedType.IDREFS && (int)XmlTokenizedType.IDREFS == 3); 212Debug.Assert((int)Token.ENTITY == (int)XmlTokenizedType.ENTITY && (int)XmlTokenizedType.ENTITY == 4); 213Debug.Assert((int)Token.ENTITIES == (int)XmlTokenizedType.ENTITIES && (int)XmlTokenizedType.ENTITIES == 5); 214Debug.Assert((int)Token.NMTOKEN == (int)XmlTokenizedType.NMTOKEN && (int)XmlTokenizedType.NMTOKEN == 6); 215Debug.Assert((int)Token.NMTOKENS == (int)XmlTokenizedType.NMTOKENS && (int)XmlTokenizedType.NMTOKENS == 7); 216Debug.Assert((int)Token.NOTATION == (int)XmlTokenizedType.NOTATION && (int)XmlTokenizedType.NOTATION == 8); 436if (GetToken(false) != Token.QName) 443Token token = GetToken(false); 444if (token == Token.SYSTEM || token == Token.PUBLIC) 446ParseExternalId(token, Token.DOCTYPE, out _publicId, out _systemId); 453case Token.LeftBracket: 461case Token.GreaterThan: 529Token token = GetToken(false); 533case Token.AttlistDecl: 537case Token.ElementDecl: 541case Token.EntityDecl: 545case Token.NotationDecl: 549case Token.Comment: 553case Token.PI: 557case Token.CondSectionStart: 565case Token.CondSectionEnd: 579case Token.RightBracket: 595if (GetToken(false) != Token.GreaterThan) 610case Token.Eof: 646if (GetToken(true) != Token.QName) 668case Token.QName: 675case Token.GreaterThan: 754Token token = GetToken(true); 756if (token != Token.CDATA) 768case Token.NOTATION: 770case Token.ID: 803if (GetToken(true) != Token.LeftParen) 809if (GetToken(false) != Token.Name) 828case Token.Or: 829if (GetToken(false) != Token.Name) 834case Token.RightParen: 841else if (token == Token.LeftParen) 847if (GetToken(false) != Token.Nmtoken) 855case Token.Or: 856if (GetToken(false) != Token.Nmtoken) 865case Token.RightParen: 885case Token.REQUIRED: 888case Token.IMPLIED: 891case Token.FIXED: 893if (GetToken(true) != Token.Literal) 898case Token.Literal: 931if (GetToken(true) != Token.QName) 964case Token.EMPTY: 967case Token.ANY: 970case Token.LeftParen: 974case Token.PCDATA: 985case Token.None: 1005if (GetToken(false) != Token.GreaterThan) 1020parsingSchema = Token.None; 1025public Token parsingSchema; 1039case Token.QName: 1043case Token.LeftParen: 1058case Token.GreaterThan: 1068case Token.Comma: 1069if (currentFrame.parsingSchema == Token.Or) 1074currentFrame.parsingSchema = Token.Comma; 1076case Token.Or: 1077if (currentFrame.parsingSchema == Token.Comma) 1082currentFrame.parsingSchema = Token.Or; 1084case Token.RightParen: 1092case Token.GreaterThan: 1122case Token.Star: 1125case Token.QMark: 1128case Token.Plus: 1146case Token.RightParen: 1152if (GetToken(false) == Token.Star && hasNames) 1161case Token.Or: 1179if (GetToken(false) != Token.QName) 1215case Token.Percent: 1217if (GetToken(true) != Token.Name) 1221goto case Token.Name; 1222case Token.Name: 1245Token token = GetToken(true); 1248case Token.PUBLIC: 1249case Token.SYSTEM: 1253ParseExternalId(token, Token.EntityDecl, out publicId, out systemId); 1259if (GetToken(false) == Token.NData) 1270if (GetToken(true) != Token.Name) 1283case Token.Literal: 1292if (GetToken(false) == Token.GreaterThan) 1305if (GetToken(true) != Token.Name) 1328Token token = GetToken(true); 1329if (token == Token.SYSTEM || token == Token.PUBLIC) 1333ParseExternalId(token, Token.NOTATION, out notationPublicId, out notationSystemId); 1346if (GetToken(false) != Token.GreaterThan) 1416case Token.INCLUDE: 1417if (GetToken(false) != Token.LeftBracket) 1441case Token.IGNORE: 1442if (GetToken(false) != Token.LeftBracket) 1451if (GetToken(false) != Token.CondSectionEnd) 1466private void ParseExternalId(Token idTokenType, Token declType, out string? publicId, out string? systemId) 1472if (GetToken(true) != Token.Literal) 1477if (idTokenType == Token.SYSTEM) 1486if (declType == Token.DOCTYPE && !_freeFloatingDtd) 1494Debug.Assert(idTokenType == Token.PUBLIC); 1504if (declType == Token.DOCTYPE && !_freeFloatingDtd) 1509if (GetToken(false) == Token.Literal) 1526if (GetToken(false) == Token.Literal) 1534else if (declType != Token.NOTATION) 1544private Token GetToken(bool needWhiteSpace) 1657return Token.None; 1669return Token.Eof; 1679private Token ScanSubsetContent() 1707return Token.ElementDecl; 1722return Token.EntityDecl; 1731return Token.None; 1748return Token.AttlistDecl; 1765return Token.NotationDecl; 1770return Token.CondSectionStart; 1775return Token.Comment; 1797return Token.PI; 1804return Token.None; 1816return Token.RightBracket; 1825return Token.CondSectionEnd; 1844private Token ScanNameExpected() 1848return Token.Name; 1851private Token ScanQNameExpected() 1855return Token.QName; 1858private Token ScanNmtokenExpected() 1862return Token.Nmtoken; 1865private Token ScanDoctype1() 1876return Token.PUBLIC; 1884return Token.SYSTEM; 1888return Token.LeftBracket; 1892return Token.GreaterThan; 1895return Token.None; 1899private Token ScanDoctype2() 1906return Token.LeftBracket; 1910return Token.GreaterThan; 1913return Token.None; 1917private Token ScanClosingTag() 1925return Token.GreaterThan; 1928private Token ScanElement1() 1937return Token.LeftParen; 1948return Token.EMPTY; 1960return Token.ANY; 1975private Token ScanElement2() 1991return Token.PCDATA; 2000return Token.None; 2003private Token ScanElement3() 2009return Token.LeftParen; 2013return Token.GreaterThan; 2017return Token.QName; 2021private Token ScanElement4() 2025Token t; 2029t = Token.Star; 2032t = Token.QMark; 2035t = Token.Plus; 2038return Token.None; 2048private Token ScanElement5() 2055return Token.Comma; 2059return Token.Or; 2063return Token.RightParen; 2067return Token.GreaterThan; 2070return Token.None; 2074private Token ScanElement6() 2081return Token.RightParen; 2086return Token.Or; 2089return Token.None; 2093private Token ScanElement7() 2099return Token.Star; 2101return Token.None; 2104private Token ScanAttlist1() 2111return Token.GreaterThan; 2119return Token.QName; 2123private Token ScanAttlist2() 2133return Token.LeftParen; 2144return Token.CDATA; 2162return Token.ENTITIES; 2165return Token.ENTITY; 2183return Token.ID; 2194return Token.IDREF; 2199return Token.IDREFS; 2217return Token.NOTATION; 2230return Token.NMTOKENS; 2235return Token.NMTOKEN; 2255private Token ScanAttlist3() 2262return Token.LeftParen; 2267return Token.None; 2271private Token ScanAttlist4() 2278return Token.RightParen; 2283return Token.Or; 2286return Token.None; 2290private Token ScanAttlist5() 2297return Token.RightParen; 2302return Token.Or; 2305return Token.None; 2309private Token ScanAttlist6() 2319return Token.Literal; 2337return Token.REQUIRED; 2349return Token.IMPLIED; 2358return Token.FIXED; 2376private Token ScanAttlist7() 2384return Token.Literal; 2387return Token.None; 2391private Token ScanLiteral(LiteralType literalType) 2421return Token.Literal; 2604return Token.None; 2644private Token ScanNotation1() 2655return Token.PUBLIC; 2663return Token.SYSTEM; 2666return Token.None; 2670private Token ScanSystemId() 2680return Token.Literal; 2683private Token ScanEntity1() 2690return Token.Percent; 2696return Token.Name; 2700private Token ScanEntity2() 2711return Token.PUBLIC; 2719return Token.SYSTEM; 2725return Token.Literal; 2728return Token.None; 2732private Token ScanEntity3() 2749return Token.NData; 2754return Token.None; 2757private Token ScanPublicId1() 2767return Token.Literal; 2770private Token ScanPublicId2() 2775return Token.None; 2781return Token.Literal; 2784private Token ScanCondSection1() 2814return Token.INCLUDE; 2825return Token.IGNORE; 2828return Token.None; 2838private Token ScanCondSection2() 2846return Token.LeftBracket; 2849private Token ScanCondSection3() 2922return Token.CondSectionEnd; 2948return Token.None; 3415private static bool IsAttributeValueType(Token token) 3417return (int)token >= (int)Token.CDATA && (int)token <= (int)Token.NOTATION;
System\Xml\Schema\DtdParserAsync.cs (188)
78if (await GetTokenAsync(false).ConfigureAwait(false) != Token.QName) 85Token token = await GetTokenAsync(false).ConfigureAwait(false); 86if (token == Token.SYSTEM || token == Token.PUBLIC) 88var tuple_0 = await ParseExternalIdAsync(token, Token.DOCTYPE).ConfigureAwait(false); 97case Token.LeftBracket: 105case Token.GreaterThan: 173Token token = await GetTokenAsync(false).ConfigureAwait(false); 177case Token.AttlistDecl: 181case Token.ElementDecl: 185case Token.EntityDecl: 189case Token.NotationDecl: 193case Token.Comment: 197case Token.PI: 201case Token.CondSectionStart: 209case Token.CondSectionEnd: 223case Token.RightBracket: 239if (await GetTokenAsync(false).ConfigureAwait(false) != Token.GreaterThan) 254case Token.Eof: 290if (await GetTokenAsync(true).ConfigureAwait(false) != Token.QName) 312case Token.QName: 319case Token.GreaterThan: 398Token token = await GetTokenAsync(true).ConfigureAwait(false); 400if (token != Token.CDATA) 412case Token.NOTATION: 414case Token.ID: 447if (await GetTokenAsync(true).ConfigureAwait(false) != Token.LeftParen) 453if (await GetTokenAsync(false).ConfigureAwait(false) != Token.Name) 472case Token.Or: 473if (await GetTokenAsync(false).ConfigureAwait(false) != Token.Name) 478case Token.RightParen: 485else if (token == Token.LeftParen) 491if (await GetTokenAsync(false).ConfigureAwait(false) != Token.Nmtoken) 499case Token.Or: 500if (await GetTokenAsync(false).ConfigureAwait(false) != Token.Nmtoken) 509case Token.RightParen: 529case Token.REQUIRED: 532case Token.IMPLIED: 535case Token.FIXED: 537if (await GetTokenAsync(true).ConfigureAwait(false) != Token.Literal) 542case Token.Literal: 575if (await GetTokenAsync(true).ConfigureAwait(false) != Token.QName) 608case Token.EMPTY: 611case Token.ANY: 614case Token.LeftParen: 618case Token.PCDATA: 629case Token.None: 649if (await GetTokenAsync(false).ConfigureAwait(false) != Token.GreaterThan) 670case Token.QName: 674case Token.LeftParen: 689case Token.GreaterThan: 699case Token.Comma: 700if (currentFrame.parsingSchema == Token.Or) 705currentFrame.parsingSchema = Token.Comma; 707case Token.Or: 708if (currentFrame.parsingSchema == Token.Comma) 713currentFrame.parsingSchema = Token.Or; 715case Token.RightParen: 723case Token.GreaterThan: 753case Token.Star: 756case Token.QMark: 759case Token.Plus: 777case Token.RightParen: 783if (await GetTokenAsync(false).ConfigureAwait(false) == Token.Star && hasNames) 792case Token.Or: 810if (await GetTokenAsync(false).ConfigureAwait(false) != Token.QName) 846case Token.Percent: 848if (await GetTokenAsync(true).ConfigureAwait(false) != Token.Name) 852goto case Token.Name; 853case Token.Name: 876Token token = await GetTokenAsync(true).ConfigureAwait(false); 879case Token.PUBLIC: 880case Token.SYSTEM: 884var tuple_1 = await ParseExternalIdAsync(token, Token.EntityDecl).ConfigureAwait(false); 892if (await GetTokenAsync(false).ConfigureAwait(false) == Token.NData) 903if (await GetTokenAsync(true).ConfigureAwait(false) != Token.Name) 916case Token.Literal: 925if (await GetTokenAsync(false).ConfigureAwait(false) == Token.GreaterThan) 938if (await GetTokenAsync(true).ConfigureAwait(false) != Token.Name) 962Token token = await GetTokenAsync(true).ConfigureAwait(false); 963if (token == Token.SYSTEM || token == Token.PUBLIC) 967var tuple_2 = await ParseExternalIdAsync(token, Token.NOTATION).ConfigureAwait(false); 982if (await GetTokenAsync(false).ConfigureAwait(false) != Token.GreaterThan) 1038case Token.INCLUDE: 1039if (await GetTokenAsync(false).ConfigureAwait(false) != Token.LeftBracket) 1063case Token.IGNORE: 1064if (await GetTokenAsync(false).ConfigureAwait(false) != Token.LeftBracket) 1073if (await GetTokenAsync(false).ConfigureAwait(false) != Token.CondSectionEnd) 1088private async Task<(string?, string?)> ParseExternalIdAsync(Token idTokenType, Token declType) 1097if (await GetTokenAsync(true).ConfigureAwait(false) != Token.Literal) 1102if (idTokenType == Token.SYSTEM) 1111if (declType == Token.DOCTYPE && !_freeFloatingDtd) 1119Debug.Assert(idTokenType == Token.PUBLIC); 1129if (declType == Token.DOCTYPE && !_freeFloatingDtd) 1134if (await GetTokenAsync(false).ConfigureAwait(false) == Token.Literal) 1151if (await GetTokenAsync(false).ConfigureAwait(false) == Token.Literal) 1159else if (declType != Token.NOTATION) 1171private async Task<Token> GetTokenAsync(bool needWhiteSpace) 1284return Token.None; 1296return Token.Eof; 1306private async Task<Token> ScanSubsetContentAsync() 1334return Token.ElementDecl; 1349return Token.EntityDecl; 1358return Token.None; 1375return Token.AttlistDecl; 1392return Token.NotationDecl; 1397return Token.CondSectionStart; 1402return Token.Comment; 1424return Token.PI; 1431return Token.None; 1443return Token.RightBracket; 1452return Token.CondSectionEnd; 1471private async Task<Token> ScanNameExpectedAsync() 1475return Token.Name; 1478private async Task<Token> ScanQNameExpectedAsync() 1482return Token.QName; 1485private async Task<Token> ScanNmtokenExpectedAsync() 1489return Token.Nmtoken; 1492private async Task<Token> ScanDoctype1Async() 1503return Token.PUBLIC; 1511return Token.SYSTEM; 1515return Token.LeftBracket; 1519return Token.GreaterThan; 1522return Token.None; 1526private async Task<Token> ScanElement1Async() 1535return Token.LeftParen; 1546return Token.EMPTY; 1558return Token.ANY; 1573private async Task<Token> ScanElement2Async() 1589return Token.PCDATA; 1598return Token.None; 1601private async Task<Token> ScanElement3Async() 1607return Token.LeftParen; 1611return Token.GreaterThan; 1615return Token.QName; 1619private async Task<Token> ScanAttlist1Async() 1626return Token.GreaterThan; 1634return Token.QName; 1638private async Task<Token> ScanAttlist2Async() 1648return Token.LeftParen; 1659return Token.CDATA; 1677return Token.ENTITIES; 1680return Token.ENTITY; 1698return Token.ID; 1709return Token.IDREF; 1714return Token.IDREFS; 1732return Token.NOTATION; 1745return Token.NMTOKENS; 1750return Token.NMTOKEN; 1770private async Task<Token> ScanAttlist6Async() 1780return Token.Literal; 1798return Token.REQUIRED; 1810return Token.IMPLIED; 1819return Token.FIXED; 1837private async Task<Token> ScanLiteralAsync(LiteralType literalType) 1867return Token.Literal; 2050return Token.None; 2069private async Task<Token> ScanNotation1Async() 2080return Token.PUBLIC; 2088return Token.SYSTEM; 2091return Token.None; 2095private async Task<Token> ScanSystemIdAsync() 2105return Token.Literal; 2108private async Task<Token> ScanEntity1Async() 2115return Token.Percent; 2121return Token.Name; 2125private async Task<Token> ScanEntity2Async() 2136return Token.PUBLIC; 2144return Token.SYSTEM; 2150return Token.Literal; 2153return Token.None; 2157private async Task<Token> ScanEntity3Async() 2174return Token.NData; 2179return Token.None; 2182private async Task<Token> ScanPublicId1Async() 2192return Token.Literal; 2195private async Task<Token> ScanPublicId2Async() 2200return Token.None; 2206return Token.Literal; 2209private async Task<Token> ScanCondSection1Async() 2239return Token.INCLUDE; 2250return Token.IGNORE; 2253return Token.None; 2263private async Task<Token> ScanCondSection3Async() 2336return Token.CondSectionEnd; 2362return Token.None;