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