246 references to ParsingFunction
System.Private.Xml (246)
System\Xml\Core\XmlTextReaderImpl.cs (153)
150private ParsingFunction _parsingFunction; 151private ParsingFunction _nextParsingFunction; 152private ParsingFunction _nextNextParsingFunction; 301_parsingFunction = ParsingFunction.NoData; 338_parsingFunction = ParsingFunction.SwitchToInteractiveXmlDecl; 339_nextParsingFunction = ParsingFunction.DocumentContent; 425_parsingFunction = ParsingFunction.SwitchToInteractiveXmlDecl; 426_nextParsingFunction = ParsingFunction.DocumentContent; 579_parsingFunction = ParsingFunction.OpenUrl; 906if (_parsingFunction >= ParsingFunction.PartialTextValue) 908if (_parsingFunction == ParsingFunction.PartialTextValue) 1000return _parsingFunction == ParsingFunction.Eof; 1228case ParsingFunction.ElementContent: 1230case ParsingFunction.DocumentContent: 1232case ParsingFunction.OpenUrl: 1234Debug.Assert(_nextParsingFunction == ParsingFunction.DocumentContent); 1235goto case ParsingFunction.SwitchToInteractiveXmlDecl; 1236case ParsingFunction.SwitchToInteractive: 1241case ParsingFunction.SwitchToInteractiveXmlDecl: 1251case ParsingFunction.ResetAttributesRootLevel: 1254_parsingFunction = (_index == 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent; 1256case ParsingFunction.MoveToElementContent: 1260_parsingFunction = ParsingFunction.ElementContent; 1262case ParsingFunction.PopElementContext: 1265Debug.Assert(_parsingFunction == ParsingFunction.ElementContent || 1266_parsingFunction == ParsingFunction.DocumentContent); 1268case ParsingFunction.PopEmptyElementContext: 1276case ParsingFunction.EntityReference: 1280case ParsingFunction.ReportEndEntity: 1284case ParsingFunction.AfterResolveEntityInContent: 1290case ParsingFunction.AfterResolveEmptyEntityInContent: 1298case ParsingFunction.InReadAttributeValue: 1302case ParsingFunction.InIncrementalRead: 1305case ParsingFunction.FragmentAttribute: 1307case ParsingFunction.XmlDeclarationFragment: 1309_parsingFunction = ParsingFunction.GoToEof; 1311case ParsingFunction.GoToEof: 1314case ParsingFunction.Error: 1315case ParsingFunction.Eof: 1316case ParsingFunction.ReaderClosed: 1318case ParsingFunction.NoData: 1321case ParsingFunction.PartialTextValue: 1324case ParsingFunction.InReadValueChunk: 1327case ParsingFunction.InReadContentAsBinary: 1330case ParsingFunction.InReadElementContentAsBinary: 1361case ParsingFunction.InReadAttributeValue: 1364case ParsingFunction.InIncrementalRead: 1367case ParsingFunction.PartialTextValue: 1370case ParsingFunction.InReadValueChunk: 1373case ParsingFunction.InReadContentAsBinary: 1376case ParsingFunction.InReadElementContentAsBinary: 1395Debug.Assert(_parsingFunction != ParsingFunction.Eof); 1422if (_parsingFunction != ParsingFunction.InReadAttributeValue) 1432if (_parsingFunction == ParsingFunction.InReadValueChunk) 1436if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 1466_parsingFunction = ParsingFunction.InReadAttributeValue; 1501if (_parsingFunction == ParsingFunction.InReadAttributeValue || 1502_parsingFunction == ParsingFunction.FragmentAttribute) 1531_parsingFunction = ParsingFunction.AfterResolveEmptyEntityInContent; 1535_parsingFunction = ParsingFunction.AfterResolveEntityInContent; 1540_parsingFunction = ParsingFunction.AfterResolveEmptyEntityInContent; 1567_parsingFunction == ParsingFunction.AfterResolveEntityInContent) 1600if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 1616if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 1647if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 1663if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 1693if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 1709if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 1740if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 1756if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 1800if (_parsingFunction != ParsingFunction.InReadValueChunk) 1806if (_parsingFunction == ParsingFunction.PartialTextValue) 1816_parsingFunction = ParsingFunction.InReadValueChunk; 2147_parsingFunction = ParsingFunction.SwitchToInteractiveXmlDecl; 2148_nextParsingFunction = ParsingFunction.DocumentContent; 2169case ParsingFunction.Eof: 2170case ParsingFunction.ReaderClosed: 2172case ParsingFunction.OpenUrl: 2175case ParsingFunction.InIncrementalRead: 2209if (_parsingFunction == ParsingFunction.InIncrementalRead) 2245if (_parsingFunction == ParsingFunction.InIncrementalRead) 2279if (_parsingFunction == ParsingFunction.InIncrementalRead) 2761_parsingFunction = ParsingFunction.Error; 2782return _attrCount > 0 && _parsingFunction >= ParsingFunction.InReadAttributeValue; 2789if (_parsingFunction == ParsingFunction.InReadValueChunk) 2793else if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 2798if (_parsingFunction == ParsingFunction.InReadAttributeValue) 2806_nextParsingFunction = (_index > 0) ? ParsingFunction.ElementContent : ParsingFunction.DocumentContent; 3000_parsingFunction = ParsingFunction.SwitchToInteractive; 3001_nextParsingFunction = ParsingFunction.FragmentAttribute; 3004Debug.Assert(_parsingFunction == ParsingFunction.SwitchToInteractiveXmlDecl); 3005_nextParsingFunction = ParsingFunction.DocumentContent; 3008Debug.Assert(_parsingFunction == ParsingFunction.SwitchToInteractiveXmlDecl); 3009Debug.Assert(_nextParsingFunction == ParsingFunction.DocumentContent); 3015_parsingFunction = ParsingFunction.SwitchToInteractive; 3016_nextParsingFunction = ParsingFunction.XmlDeclarationFragment; 3554if (_parsingFunction == ParsingFunction.ReaderClosed) 3567_parsingFunction = ParsingFunction.ReaderClosed; 3640_parsingFunction = ParsingFunction.ResetAttributesRootLevel; 4029if (_parsingFunction == ParsingFunction.EntityReference) 4266int i = (_parsingFunction == ParsingFunction.InIncrementalRead) ? _index : _index - 1; 4406_parsingFunction = ParsingFunction.MoveToElementContent; 4425_parsingFunction = ParsingFunction.PopEmptyElementContext; 4645_nextParsingFunction = (_index > 0) ? _parsingFunction : ParsingFunction.DocumentContent; 4646_parsingFunction = ParsingFunction.PopElementContext; 4730_parsingFunction = ParsingFunction.MoveToElementContent; 4746_parsingFunction = ParsingFunction.PopEmptyElementContext; 5467_parsingFunction = ParsingFunction.PartialTextValue; 5506_parsingFunction = ParsingFunction.PartialTextValue; 5516if (_parsingFunction == ParsingFunction.ReportEndEntity) 5522else if (_parsingFunction == ParsingFunction.EntityReference) 5641_parsingFunction = ParsingFunction.EntityReference; 5742_parsingFunction = ParsingFunction.ReportEndEntity; 5772Debug.Assert(_parsingFunction == ParsingFunction.PartialTextValue || 5773(_parsingFunction == ParsingFunction.InReadValueChunk && _incReadState == IncrementalReadState.ReadValueChunk_OnPartialValue)); 5795case ParsingFunction.InReadAttributeValue: 5798case ParsingFunction.InReadValueChunk: 5813case ParsingFunction.InReadContentAsBinary: 5814case ParsingFunction.InReadElementContentAsBinary: 5840Debug.Assert(_parsingFunction == ParsingFunction.PartialTextValue || _parsingFunction == ParsingFunction.InReadValueChunk || 5841_parsingFunction == ParsingFunction.InReadContentAsBinary || _parsingFunction == ParsingFunction.InReadElementContentAsBinary); 5850Debug.Assert(_parsingFunction == ParsingFunction.InReadValueChunk); 5855Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 5867Debug.Assert(_parsingFunction == ParsingFunction.InReadContentAsBinary || _parsingFunction == ParsingFunction.InReadElementContentAsBinary); 5872Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 6173if (_index == 0 && _parsingFunction == ParsingFunction.ElementContent) 6175_parsingFunction = ParsingFunction.DocumentContent; 6713_parsingFunction = ParsingFunction.ResetAttributesRootLevel; 7754_parsingFunction = ParsingFunction.Eof; 8133_parsingFunction = ParsingFunction.InIncrementalRead; 8245_parsingFunction = ParsingFunction.PopElementContext; 8246_nextParsingFunction = (_index > 0 || _fragmentType != XmlNodeType.Document) ? ParsingFunction.ElementContent 8247: ParsingFunction.DocumentContent; 8545_parsingFunction = ParsingFunction.InReadAttributeValue; 8551Debug.Assert(_parsingFunction == ParsingFunction.InReadAttributeValue); 8552_parsingFunction = ParsingFunction.FragmentAttribute; 8890Debug.Assert(_parsingFunction != ParsingFunction.InReadContentAsBinary); 8892if (_parsingFunction == ParsingFunction.InReadValueChunk) 8897if (_parsingFunction == ParsingFunction.InIncrementalRead) 8910SetupReadContentAsBinaryState(ParsingFunction.InReadContentAsBinary); 8917Debug.Assert(_parsingFunction != ParsingFunction.InReadElementContentAsBinary); 8943SetupReadContentAsBinaryState(ParsingFunction.InReadElementContentAsBinary); 8982private void SetupReadContentAsBinaryState(ParsingFunction inReadBinaryFunction) 8984if (_parsingFunction == ParsingFunction.PartialTextValue) 9425ParsingFunction tmp = _parsingFunction; 9464Debug.Assert(_parsingFunction != ParsingFunction.InReadElementContentAsBinary);
System\Xml\Core\XmlTextReaderImplAsync.cs (93)
33if (_parsingFunction >= ParsingFunction.PartialTextValue) 42if (_parsingFunction >= ParsingFunction.PartialTextValue) 44if (_parsingFunction == ParsingFunction.PartialTextValue) 168case ParsingFunction.ElementContent: 170case ParsingFunction.DocumentContent: 174case ParsingFunction.OpenUrl: 177case ParsingFunction.SwitchToInteractive: 182case ParsingFunction.SwitchToInteractiveXmlDecl: 184case ParsingFunction.ResetAttributesRootLevel: 187_parsingFunction = (_index == 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent; 189case ParsingFunction.MoveToElementContent: 193_parsingFunction = ParsingFunction.ElementContent; 195case ParsingFunction.PopElementContext: 198Debug.Assert(_parsingFunction == ParsingFunction.ElementContent || 199_parsingFunction == ParsingFunction.DocumentContent); 201case ParsingFunction.PopEmptyElementContext: 210case ParsingFunction.EntityReference: 213case ParsingFunction.ReportEndEntity: 217case ParsingFunction.AfterResolveEntityInContent: 223case ParsingFunction.AfterResolveEmptyEntityInContent: 231case ParsingFunction.InReadAttributeValue: 236case ParsingFunction.InIncrementalRead: 239case ParsingFunction.FragmentAttribute: 241case ParsingFunction.XmlDeclarationFragment: 243_parsingFunction = ParsingFunction.GoToEof; 245case ParsingFunction.GoToEof: 248case ParsingFunction.Error: 249case ParsingFunction.Eof: 250case ParsingFunction.ReaderClosed: 252case ParsingFunction.NoData: 255case ParsingFunction.PartialTextValue: 257case ParsingFunction.InReadValueChunk: 259case ParsingFunction.InReadContentAsBinary: 261case ParsingFunction.InReadElementContentAsBinary: 322case ParsingFunction.InReadAttributeValue: 326case ParsingFunction.InIncrementalRead: 329case ParsingFunction.PartialTextValue: 332case ParsingFunction.InReadValueChunk: 335case ParsingFunction.InReadContentAsBinary: 338case ParsingFunction.InReadElementContentAsBinary: 357Debug.Assert(_parsingFunction != ParsingFunction.Eof); 396if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 412if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 452if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 468if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 517if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 533if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 573if (_parsingFunction == ParsingFunction.InReadElementContentAsBinary) 589if (_parsingFunction == ParsingFunction.InReadContentAsBinary) 625if (_parsingFunction != ParsingFunction.InReadValueChunk) 631if (_parsingFunction == ParsingFunction.PartialTextValue) 641_parsingFunction = ParsingFunction.InReadValueChunk; 1224_parsingFunction = ParsingFunction.ResetAttributesRootLevel; 1632if (_parsingFunction == ParsingFunction.EntityReference) 2010_parsingFunction = ParsingFunction.MoveToElementContent; 2024_parsingFunction = ParsingFunction.PopEmptyElementContext; 2263_nextParsingFunction = (_index > 0) ? _parsingFunction : ParsingFunction.DocumentContent; 2264_parsingFunction = ParsingFunction.PopElementContext; 2363_parsingFunction = ParsingFunction.MoveToElementContent; 2379_parsingFunction = ParsingFunction.PopEmptyElementContext; 3042_parsingFunction = ParsingFunction.PartialTextValue; 3091_parsingFunction = ParsingFunction.PartialTextValue; 3106if (_parsingFunction == ParsingFunction.ReportEndEntity) 3112else if (_parsingFunction == ParsingFunction.EntityReference) 3389_parsingFunction = ParsingFunction.EntityReference; 3491_parsingFunction = ParsingFunction.ReportEndEntity; 3530Debug.Assert(_parsingFunction == ParsingFunction.PartialTextValue || 3531(_parsingFunction == ParsingFunction.InReadValueChunk && _incReadState == IncrementalReadState.ReadValueChunk_OnPartialValue)); 3564case ParsingFunction.InReadAttributeValue: 3567case ParsingFunction.InReadValueChunk: 3582case ParsingFunction.InReadContentAsBinary: 3583case ParsingFunction.InReadElementContentAsBinary: 3609Debug.Assert(_parsingFunction == ParsingFunction.PartialTextValue || _parsingFunction == ParsingFunction.InReadValueChunk || 3610_parsingFunction == ParsingFunction.InReadContentAsBinary || _parsingFunction == ParsingFunction.InReadElementContentAsBinary); 3625Debug.Assert(_parsingFunction == ParsingFunction.InReadValueChunk); 3630Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 3644Debug.Assert(_parsingFunction == ParsingFunction.InReadContentAsBinary || _parsingFunction == ParsingFunction.InReadElementContentAsBinary); 3649Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 4454_parsingFunction = ParsingFunction.ResetAttributesRootLevel; 5270Debug.Assert(_parsingFunction != ParsingFunction.InReadContentAsBinary); 5272if (_parsingFunction == ParsingFunction.InReadValueChunk) 5276if (_parsingFunction == ParsingFunction.InIncrementalRead) 5289SetupReadContentAsBinaryState(ParsingFunction.InReadContentAsBinary); 5296Debug.Assert(_parsingFunction != ParsingFunction.InReadElementContentAsBinary); 5319SetupReadContentAsBinaryState(ParsingFunction.InReadElementContentAsBinary); 5436ParsingFunction tmp = _parsingFunction; 5473Debug.Assert(_parsingFunction != ParsingFunction.InReadElementContentAsBinary);