87 writes to _parsingFunction
System.Private.Xml (87)
System\Xml\Core\XmlTextReaderImpl.cs (54)
301
_parsingFunction
= ParsingFunction.NoData;
338
_parsingFunction
= ParsingFunction.SwitchToInteractiveXmlDecl;
425
_parsingFunction
= ParsingFunction.SwitchToInteractiveXmlDecl;
579
_parsingFunction
= ParsingFunction.OpenUrl;
911
_parsingFunction
= _nextParsingFunction;
1239
_parsingFunction
= _nextParsingFunction;
1243
_parsingFunction
= _nextParsingFunction;
1254
_parsingFunction
= (_index == 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
1260
_parsingFunction
= ParsingFunction.ElementContent;
1264
_parsingFunction
= _nextParsingFunction;
1274
_parsingFunction
= _nextParsingFunction;
1277
_parsingFunction
= _nextParsingFunction;
1282
_parsingFunction
= _nextParsingFunction;
1288
_parsingFunction
= _nextParsingFunction;
1296
_parsingFunction
= _nextParsingFunction;
1309
_parsingFunction
= ParsingFunction.GoToEof;
1466
_parsingFunction
= ParsingFunction.InReadAttributeValue;
1531
_parsingFunction
= ParsingFunction.AfterResolveEmptyEntityInContent;
1535
_parsingFunction
= ParsingFunction.AfterResolveEntityInContent;
1540
_parsingFunction
= ParsingFunction.AfterResolveEmptyEntityInContent;
1816
_parsingFunction
= ParsingFunction.InReadValueChunk;
2147
_parsingFunction
= ParsingFunction.SwitchToInteractiveXmlDecl;
2761
_parsingFunction
= ParsingFunction.Error;
2805
_parsingFunction
= _nextParsingFunction;
3000
_parsingFunction
= ParsingFunction.SwitchToInteractive;
3015
_parsingFunction
= ParsingFunction.SwitchToInteractive;
3567
_parsingFunction
= ParsingFunction.ReaderClosed;
3640
_parsingFunction
= ParsingFunction.ResetAttributesRootLevel;
3866
_parsingFunction
= _nextParsingFunction;
4031
_parsingFunction
= _nextParsingFunction;
4406
_parsingFunction
= ParsingFunction.MoveToElementContent;
4425
_parsingFunction
= ParsingFunction.PopEmptyElementContext;
4646
_parsingFunction
= ParsingFunction.PopElementContext;
4730
_parsingFunction
= ParsingFunction.MoveToElementContent;
4746
_parsingFunction
= ParsingFunction.PopEmptyElementContext;
5467
_parsingFunction
= ParsingFunction.PartialTextValue;
5506
_parsingFunction
= ParsingFunction.PartialTextValue;
5519
_parsingFunction
= _nextParsingFunction;
5524
_parsingFunction
= _nextNextParsingFunction;
5641
_parsingFunction
= ParsingFunction.EntityReference;
5742
_parsingFunction
= ParsingFunction.ReportEndEntity;
5844
_parsingFunction
= _nextParsingFunction;
5860
_parsingFunction
= _nextParsingFunction;
5877
_parsingFunction
= _nextParsingFunction;
6175
_parsingFunction
= ParsingFunction.DocumentContent;
6713
_parsingFunction
= ParsingFunction.ResetAttributesRootLevel;
7754
_parsingFunction
= ParsingFunction.Eof;
8133
_parsingFunction
= ParsingFunction.InIncrementalRead;
8245
_parsingFunction
= ParsingFunction.PopElementContext;
8545
_parsingFunction
= ParsingFunction.InReadAttributeValue;
8552
_parsingFunction
= ParsingFunction.FragmentAttribute;
8995
_parsingFunction
= inReadBinaryFunction;
9426
_parsingFunction
= _nextParsingFunction;
9462
_parsingFunction
= _nextParsingFunction;
System\Xml\Core\XmlTextReaderImplAsync.cs (33)
47
_parsingFunction
= _nextParsingFunction;
180
_parsingFunction
= _nextParsingFunction;
187
_parsingFunction
= (_index == 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
193
_parsingFunction
= ParsingFunction.ElementContent;
197
_parsingFunction
= _nextParsingFunction;
207
_parsingFunction
= _nextParsingFunction;
211
_parsingFunction
= _nextParsingFunction;
215
_parsingFunction
= _nextParsingFunction;
221
_parsingFunction
= _nextParsingFunction;
229
_parsingFunction
= _nextParsingFunction;
243
_parsingFunction
= ParsingFunction.GoToEof;
273
_parsingFunction
= _nextParsingFunction;
641
_parsingFunction
= ParsingFunction.InReadValueChunk;
1224
_parsingFunction
= ParsingFunction.ResetAttributesRootLevel;
1445
_parsingFunction
= _nextParsingFunction;
1634
_parsingFunction
= _nextParsingFunction;
2010
_parsingFunction
= ParsingFunction.MoveToElementContent;
2024
_parsingFunction
= ParsingFunction.PopEmptyElementContext;
2264
_parsingFunction
= ParsingFunction.PopElementContext;
2363
_parsingFunction
= ParsingFunction.MoveToElementContent;
2379
_parsingFunction
= ParsingFunction.PopEmptyElementContext;
3042
_parsingFunction
= ParsingFunction.PartialTextValue;
3091
_parsingFunction
= ParsingFunction.PartialTextValue;
3109
_parsingFunction
= _nextParsingFunction;
3114
_parsingFunction
= _nextNextParsingFunction;
3389
_parsingFunction
= ParsingFunction.EntityReference;
3491
_parsingFunction
= ParsingFunction.ReportEndEntity;
3613
_parsingFunction
= _nextParsingFunction;
3635
_parsingFunction
= _nextParsingFunction;
3654
_parsingFunction
= _nextParsingFunction;
4454
_parsingFunction
= ParsingFunction.ResetAttributesRootLevel;
5437
_parsingFunction
= _nextParsingFunction;
5471
_parsingFunction
= _nextParsingFunction;
124 references to _parsingFunction
System.Private.Xml (124)
System\Xml\Core\XmlTextReaderImpl.cs (74)
906
if (
_parsingFunction
>= ParsingFunction.PartialTextValue)
908
if (
_parsingFunction
== ParsingFunction.PartialTextValue)
1000
return
_parsingFunction
== ParsingFunction.Eof;
1226
switch (
_parsingFunction
)
1265
Debug.Assert(
_parsingFunction
== ParsingFunction.ElementContent ||
1266
_parsingFunction
== ParsingFunction.DocumentContent);
1334
Debug.Fail($"Unexpected parsing function {
_parsingFunction
}");
1359
switch (
_parsingFunction
)
1362
Debug.Fail($"Unexpected parsing function {
_parsingFunction
}");
1395
Debug.Assert(
_parsingFunction
!= ParsingFunction.Eof);
1422
if (
_parsingFunction
!= ParsingFunction.InReadAttributeValue)
1432
if (
_parsingFunction
== ParsingFunction.InReadValueChunk)
1436
if (
_parsingFunction
== ParsingFunction.InReadContentAsBinary)
1465
_nextParsingFunction =
_parsingFunction
;
1501
if (
_parsingFunction
== ParsingFunction.InReadAttributeValue ||
1502
_parsingFunction
== ParsingFunction.FragmentAttribute)
1528
_nextParsingFunction =
_parsingFunction
;
1539
_nextParsingFunction =
_parsingFunction
;
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)
1814
_nextParsingFunction =
_parsingFunction
;
2167
switch (
_parsingFunction
)
2209
if (
_parsingFunction
== ParsingFunction.InIncrementalRead)
2245
if (
_parsingFunction
== ParsingFunction.InIncrementalRead)
2279
if (
_parsingFunction
== ParsingFunction.InIncrementalRead)
2782
return _attrCount > 0 &&
_parsingFunction
>= ParsingFunction.InReadAttributeValue;
2789
if (
_parsingFunction
== ParsingFunction.InReadValueChunk)
2793
else if (
_parsingFunction
== ParsingFunction.InReadContentAsBinary)
2798
if (
_parsingFunction
== ParsingFunction.InReadAttributeValue)
3004
Debug.Assert(
_parsingFunction
== ParsingFunction.SwitchToInteractiveXmlDecl);
3008
Debug.Assert(
_parsingFunction
== ParsingFunction.SwitchToInteractiveXmlDecl);
3554
if (
_parsingFunction
== ParsingFunction.ReaderClosed)
3639
_nextParsingFunction =
_parsingFunction
;
4029
if (
_parsingFunction
== ParsingFunction.EntityReference)
4266
int i = (
_parsingFunction
== ParsingFunction.InIncrementalRead) ? _index : _index - 1;
4424
_nextParsingFunction =
_parsingFunction
;
4645
_nextParsingFunction = (_index > 0) ?
_parsingFunction
: ParsingFunction.DocumentContent;
4745
_nextParsingFunction =
_parsingFunction
;
5466
_nextParsingFunction =
_parsingFunction
;
5505
_nextParsingFunction =
_parsingFunction
;
5516
if (
_parsingFunction
== ParsingFunction.ReportEndEntity)
5522
else if (
_parsingFunction
== ParsingFunction.EntityReference)
5640
_nextParsingFunction =
_parsingFunction
;
5741
_nextParsingFunction =
_parsingFunction
;
5772
Debug.Assert(
_parsingFunction
== ParsingFunction.PartialTextValue ||
5773
(
_parsingFunction
== ParsingFunction.InReadValueChunk && _incReadState == IncrementalReadState.ReadValueChunk_OnPartialValue));
5793
switch (
_parsingFunction
)
5840
Debug.Assert(
_parsingFunction
== ParsingFunction.PartialTextValue ||
_parsingFunction
== ParsingFunction.InReadValueChunk ||
5841
_parsingFunction
== ParsingFunction.InReadContentAsBinary ||
_parsingFunction
== ParsingFunction.InReadElementContentAsBinary);
5850
Debug.Assert(
_parsingFunction
== ParsingFunction.InReadValueChunk);
5867
Debug.Assert(
_parsingFunction
== ParsingFunction.InReadContentAsBinary ||
_parsingFunction
== ParsingFunction.InReadElementContentAsBinary);
6173
if (_index == 0 &&
_parsingFunction
== ParsingFunction.ElementContent)
6712
_nextParsingFunction =
_parsingFunction
;
8551
Debug.Assert(
_parsingFunction
== ParsingFunction.InReadAttributeValue);
8890
Debug.Assert(
_parsingFunction
!= ParsingFunction.InReadContentAsBinary);
8892
if (
_parsingFunction
== ParsingFunction.InReadValueChunk)
8897
if (
_parsingFunction
== ParsingFunction.InIncrementalRead)
8917
Debug.Assert(
_parsingFunction
!= ParsingFunction.InReadElementContentAsBinary);
8984
if (
_parsingFunction
== ParsingFunction.PartialTextValue)
8992
_nextParsingFunction =
_parsingFunction
;
9425
ParsingFunction tmp =
_parsingFunction
;
9464
Debug.Assert(
_parsingFunction
!= ParsingFunction.InReadElementContentAsBinary);
System\Xml\Core\XmlTextReaderImplAsync.cs (50)
33
if (
_parsingFunction
>= ParsingFunction.PartialTextValue)
42
if (
_parsingFunction
>= ParsingFunction.PartialTextValue)
44
if (
_parsingFunction
== ParsingFunction.PartialTextValue)
166
switch (
_parsingFunction
)
175
Debug.Fail($"Unexpected parsing function {
_parsingFunction
}");
198
Debug.Assert(
_parsingFunction
== ParsingFunction.ElementContent ||
199
_parsingFunction
== ParsingFunction.DocumentContent);
264
Debug.Fail($"Unexpected parsing function {
_parsingFunction
}");
320
switch (
_parsingFunction
)
323
Debug.Fail($"Unexpected parsing function {
_parsingFunction
}");
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)
639
_nextParsingFunction =
_parsingFunction
;
1223
_nextParsingFunction =
_parsingFunction
;
1632
if (
_parsingFunction
== ParsingFunction.EntityReference)
2023
_nextParsingFunction =
_parsingFunction
;
2263
_nextParsingFunction = (_index > 0) ?
_parsingFunction
: ParsingFunction.DocumentContent;
2378
_nextParsingFunction =
_parsingFunction
;
3041
_nextParsingFunction =
_parsingFunction
;
3090
_nextParsingFunction =
_parsingFunction
;
3106
if (
_parsingFunction
== ParsingFunction.ReportEndEntity)
3112
else if (
_parsingFunction
== ParsingFunction.EntityReference)
3388
_nextParsingFunction =
_parsingFunction
;
3490
_nextParsingFunction =
_parsingFunction
;
3530
Debug.Assert(
_parsingFunction
== ParsingFunction.PartialTextValue ||
3531
(
_parsingFunction
== ParsingFunction.InReadValueChunk && _incReadState == IncrementalReadState.ReadValueChunk_OnPartialValue));
3562
switch (
_parsingFunction
)
3609
Debug.Assert(
_parsingFunction
== ParsingFunction.PartialTextValue ||
_parsingFunction
== ParsingFunction.InReadValueChunk ||
3610
_parsingFunction
== ParsingFunction.InReadContentAsBinary ||
_parsingFunction
== ParsingFunction.InReadElementContentAsBinary);
3625
Debug.Assert(
_parsingFunction
== ParsingFunction.InReadValueChunk);
3644
Debug.Assert(
_parsingFunction
== ParsingFunction.InReadContentAsBinary ||
_parsingFunction
== ParsingFunction.InReadElementContentAsBinary);
4453
_nextParsingFunction =
_parsingFunction
;
5270
Debug.Assert(
_parsingFunction
!= ParsingFunction.InReadContentAsBinary);
5272
if (
_parsingFunction
== ParsingFunction.InReadValueChunk)
5276
if (
_parsingFunction
== ParsingFunction.InIncrementalRead)
5296
Debug.Assert(
_parsingFunction
!= ParsingFunction.InReadElementContentAsBinary);
5436
ParsingFunction tmp =
_parsingFunction
;
5473
Debug.Assert(
_parsingFunction
!= ParsingFunction.InReadElementContentAsBinary);