246 references to ParsingFunction
System.Xml (246)
System\Xml\Core\XmlTextReaderImpl.cs (153)
167
ParsingFunction
parsingFunction;
168
ParsingFunction
nextParsingFunction;
169
ParsingFunction
nextNextParsingFunction;
343
parsingFunction =
ParsingFunction
.NoData;
377
parsingFunction =
ParsingFunction
.SwitchToInteractiveXmlDecl;
378
nextParsingFunction =
ParsingFunction
.DocumentContent;
465
parsingFunction =
ParsingFunction
.SwitchToInteractiveXmlDecl;
466
nextParsingFunction =
ParsingFunction
.DocumentContent;
615
parsingFunction =
ParsingFunction
.OpenUrl;
906
if ( parsingFunction >=
ParsingFunction
.PartialTextValue ) {
907
if ( parsingFunction ==
ParsingFunction
.PartialTextValue ) {
980
return parsingFunction ==
ParsingFunction
.Eof;
1163
case
ParsingFunction
.ElementContent:
1165
case
ParsingFunction
.DocumentContent:
1168
case
ParsingFunction
.OpenUrl:
1170
Debug.Assert( nextParsingFunction ==
ParsingFunction
.DocumentContent );
1171
goto case
ParsingFunction
.SwitchToInteractiveXmlDecl;
1173
case
ParsingFunction
.SwitchToInteractive:
1178
case
ParsingFunction
.SwitchToInteractiveXmlDecl:
1187
case
ParsingFunction
.ResetAttributesRootLevel:
1190
parsingFunction = ( index == 0 ) ?
ParsingFunction
.DocumentContent :
ParsingFunction
.ElementContent;
1192
case
ParsingFunction
.MoveToElementContent:
1196
parsingFunction =
ParsingFunction
.ElementContent;
1198
case
ParsingFunction
.PopElementContext:
1201
Debug.Assert( parsingFunction ==
ParsingFunction
.ElementContent ||
1202
parsingFunction ==
ParsingFunction
.DocumentContent );
1204
case
ParsingFunction
.PopEmptyElementContext:
1213
case
ParsingFunction
.EntityReference:
1217
case
ParsingFunction
.ReportEndEntity:
1221
case
ParsingFunction
.AfterResolveEntityInContent:
1227
case
ParsingFunction
.AfterResolveEmptyEntityInContent:
1236
case
ParsingFunction
.InReadAttributeValue:
1241
case
ParsingFunction
.InIncrementalRead:
1244
case
ParsingFunction
.FragmentAttribute:
1246
case
ParsingFunction
.XmlDeclarationFragment:
1248
parsingFunction =
ParsingFunction
.GoToEof;
1251
case
ParsingFunction
.GoToEof:
1254
case
ParsingFunction
.Error:
1255
case
ParsingFunction
.Eof:
1256
case
ParsingFunction
.ReaderClosed:
1258
case
ParsingFunction
.NoData:
1261
case
ParsingFunction
.PartialTextValue:
1264
case
ParsingFunction
.InReadValueChunk:
1267
case
ParsingFunction
.InReadContentAsBinary:
1270
case
ParsingFunction
.InReadElementContentAsBinary:
1296
case
ParsingFunction
.InReadAttributeValue:
1300
case
ParsingFunction
.InIncrementalRead:
1304
case
ParsingFunction
.PartialTextValue:
1307
case
ParsingFunction
.InReadValueChunk:
1310
case
ParsingFunction
.InReadContentAsBinary:
1313
case
ParsingFunction
.InReadElementContentAsBinary:
1330
Debug.Assert( parsingFunction !=
ParsingFunction
.Eof );
1353
if ( parsingFunction !=
ParsingFunction
.InReadAttributeValue ) {
1360
if ( parsingFunction ==
ParsingFunction
.InReadValueChunk ) {
1363
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
1400
parsingFunction =
ParsingFunction
.InReadAttributeValue;
1437
if ( parsingFunction ==
ParsingFunction
.InReadAttributeValue ||
1438
parsingFunction ==
ParsingFunction
.FragmentAttribute ) {
1461
parsingFunction =
ParsingFunction
.AfterResolveEmptyEntityInContent;
1464
parsingFunction =
ParsingFunction
.AfterResolveEntityInContent;
1469
parsingFunction =
ParsingFunction
.AfterResolveEmptyEntityInContent;
1494
parsingFunction ==
ParsingFunction
.AfterResolveEntityInContent ) {
1531
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
1543
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
1579
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
1591
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
1626
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
1638
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
1674
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
1686
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
1732
if ( parsingFunction !=
ParsingFunction
.InReadValueChunk ) {
1736
if ( parsingFunction ==
ParsingFunction
.PartialTextValue ) {
1744
parsingFunction =
ParsingFunction
.InReadValueChunk;
2008
parsingFunction =
ParsingFunction
.SwitchToInteractiveXmlDecl;
2009
nextParsingFunction =
ParsingFunction
.DocumentContent;
2029
case
ParsingFunction
.Eof:
2030
case
ParsingFunction
.ReaderClosed:
2032
case
ParsingFunction
.OpenUrl:
2035
case
ParsingFunction
.InIncrementalRead:
2065
if ( parsingFunction ==
ParsingFunction
.InIncrementalRead ) {
2099
if ( parsingFunction ==
ParsingFunction
.InIncrementalRead ) {
2129
if ( parsingFunction ==
ParsingFunction
.InIncrementalRead ) {
2525
parsingFunction =
ParsingFunction
.Error;
2548
return attrCount > 0 && parsingFunction >=
ParsingFunction
.InReadAttributeValue;
2554
if ( parsingFunction ==
ParsingFunction
.InReadValueChunk ) {
2557
else if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
2560
if ( parsingFunction ==
ParsingFunction
.InReadAttributeValue ) {
2568
nextParsingFunction = ( index > 0 ) ?
ParsingFunction
.ElementContent :
ParsingFunction
.DocumentContent;
2762
parsingFunction =
ParsingFunction
.SwitchToInteractive;
2763
nextParsingFunction =
ParsingFunction
.FragmentAttribute;
2766
Debug.Assert( parsingFunction ==
ParsingFunction
.SwitchToInteractiveXmlDecl );
2767
nextParsingFunction =
ParsingFunction
.DocumentContent;
2770
Debug.Assert( parsingFunction ==
ParsingFunction
.SwitchToInteractiveXmlDecl );
2771
Debug.Assert( nextParsingFunction ==
ParsingFunction
.DocumentContent );
2776
parsingFunction =
ParsingFunction
.SwitchToInteractive;
2777
nextParsingFunction =
ParsingFunction
.XmlDeclarationFragment;
3246
if ( parsingFunction ==
ParsingFunction
.ReaderClosed ) {
3257
parsingFunction =
ParsingFunction
.ReaderClosed;
3321
parsingFunction =
ParsingFunction
.ResetAttributesRootLevel;
3666
if ( parsingFunction ==
ParsingFunction
.EntityReference ) {
3876
int i = ( parsingFunction ==
ParsingFunction
.InIncrementalRead ) ? index : index - 1;
4019
parsingFunction =
ParsingFunction
.MoveToElementContent;
4034
parsingFunction =
ParsingFunction
.PopEmptyElementContext;
4232
nextParsingFunction = ( index > 0 ) ? parsingFunction :
ParsingFunction
.DocumentContent;
4233
parsingFunction =
ParsingFunction
.PopElementContext;
4320
parsingFunction =
ParsingFunction
.MoveToElementContent;
4333
parsingFunction =
ParsingFunction
.PopEmptyElementContext;
4989
parsingFunction =
ParsingFunction
.PartialTextValue;
5021
parsingFunction =
ParsingFunction
.PartialTextValue;
5032
if ( parsingFunction ==
ParsingFunction
.ReportEndEntity ) {
5037
else if ( parsingFunction ==
ParsingFunction
.EntityReference ) {
5146
parsingFunction =
ParsingFunction
.EntityReference;
5234
parsingFunction =
ParsingFunction
.ReportEndEntity;
5263
Debug.Assert( parsingFunction ==
ParsingFunction
.PartialTextValue ||
5264
( parsingFunction ==
ParsingFunction
.InReadValueChunk && incReadState == IncrementalReadState.ReadValueChunk_OnPartialValue ) );
5283
case
ParsingFunction
.InReadAttributeValue:
5286
case
ParsingFunction
.InReadValueChunk:
5298
case
ParsingFunction
.InReadContentAsBinary:
5299
case
ParsingFunction
.InReadElementContentAsBinary:
5322
Debug.Assert( parsingFunction ==
ParsingFunction
.PartialTextValue || parsingFunction ==
ParsingFunction
.InReadValueChunk ||
5323
parsingFunction ==
ParsingFunction
.InReadContentAsBinary || parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary );
5333
Debug.Assert( parsingFunction ==
ParsingFunction
.InReadValueChunk );
5337
Debug.Assert( ( index > 0 ) ? nextParsingFunction ==
ParsingFunction
.ElementContent : nextParsingFunction ==
ParsingFunction
.DocumentContent );
5347
Debug.Assert( parsingFunction ==
ParsingFunction
.InReadContentAsBinary || parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary );
5351
Debug.Assert( ( index > 0 ) ? nextParsingFunction ==
ParsingFunction
.ElementContent : nextParsingFunction ==
ParsingFunction
.DocumentContent );
5623
if ( index == 0 && parsingFunction ==
ParsingFunction
.ElementContent ) {
5624
parsingFunction =
ParsingFunction
.DocumentContent;
6078
parsingFunction =
ParsingFunction
.ResetAttributesRootLevel;
6995
parsingFunction =
ParsingFunction
.Eof;
7316
parsingFunction =
ParsingFunction
.InIncrementalRead;
7405
parsingFunction =
ParsingFunction
.PopElementContext;
7406
nextParsingFunction = ( index > 0 || fragmentType != XmlNodeType.Document ) ?
ParsingFunction
.ElementContent
7407
:
ParsingFunction
.DocumentContent;
7668
parsingFunction =
ParsingFunction
.InReadAttributeValue;
7673
Debug.Assert( parsingFunction ==
ParsingFunction
.InReadAttributeValue );
7674
parsingFunction =
ParsingFunction
.FragmentAttribute;
7949
Debug.Assert( parsingFunction !=
ParsingFunction
.InReadContentAsBinary );
7951
if ( parsingFunction ==
ParsingFunction
.InReadValueChunk ) {
7954
if ( parsingFunction ==
ParsingFunction
.InIncrementalRead ) {
7964
SetupReadContentAsBinaryState(
ParsingFunction
.InReadContentAsBinary );
7970
Debug.Assert( parsingFunction !=
ParsingFunction
.InReadElementContentAsBinary );
7990
SetupReadContentAsBinaryState(
ParsingFunction
.InReadElementContentAsBinary );
8024
void SetupReadContentAsBinaryState(
ParsingFunction
inReadBinaryFunction ) {
8025
if ( parsingFunction ==
ParsingFunction
.PartialTextValue ) {
8406
ParsingFunction
tmp = parsingFunction;
8438
Debug.Assert( parsingFunction !=
ParsingFunction
.InReadElementContentAsBinary );
System\Xml\Core\XmlTextReaderImplAsync.cs (93)
39
if (parsingFunction >=
ParsingFunction
.PartialTextValue) {
47
if (parsingFunction >=
ParsingFunction
.PartialTextValue) {
48
if (parsingFunction ==
ParsingFunction
.PartialTextValue) {
154
case
ParsingFunction
.ElementContent:
156
case
ParsingFunction
.DocumentContent:
160
case
ParsingFunction
.OpenUrl:
164
case
ParsingFunction
.SwitchToInteractive:
169
case
ParsingFunction
.SwitchToInteractiveXmlDecl:
171
case
ParsingFunction
.ResetAttributesRootLevel:
174
parsingFunction = (index == 0) ?
ParsingFunction
.DocumentContent :
ParsingFunction
.ElementContent;
176
case
ParsingFunction
.MoveToElementContent:
180
parsingFunction =
ParsingFunction
.ElementContent;
182
case
ParsingFunction
.PopElementContext:
185
Debug.Assert(parsingFunction ==
ParsingFunction
.ElementContent ||
186
parsingFunction ==
ParsingFunction
.DocumentContent);
188
case
ParsingFunction
.PopEmptyElementContext:
197
case
ParsingFunction
.EntityReference:
200
case
ParsingFunction
.ReportEndEntity:
204
case
ParsingFunction
.AfterResolveEntityInContent:
210
case
ParsingFunction
.AfterResolveEmptyEntityInContent:
219
case
ParsingFunction
.InReadAttributeValue:
224
case
ParsingFunction
.InIncrementalRead:
227
case
ParsingFunction
.FragmentAttribute:
229
case
ParsingFunction
.XmlDeclarationFragment:
231
parsingFunction =
ParsingFunction
.GoToEof;
234
case
ParsingFunction
.GoToEof:
237
case
ParsingFunction
.Error:
238
case
ParsingFunction
.Eof:
239
case
ParsingFunction
.ReaderClosed:
241
case
ParsingFunction
.NoData:
244
case
ParsingFunction
.PartialTextValue:
246
case
ParsingFunction
.InReadValueChunk:
248
case
ParsingFunction
.InReadContentAsBinary:
250
case
ParsingFunction
.InReadElementContentAsBinary:
300
case
ParsingFunction
.InReadAttributeValue:
304
case
ParsingFunction
.InIncrementalRead:
308
case
ParsingFunction
.PartialTextValue:
311
case
ParsingFunction
.InReadValueChunk:
314
case
ParsingFunction
.InReadContentAsBinary:
317
case
ParsingFunction
.InReadElementContentAsBinary:
334
Debug.Assert( parsingFunction !=
ParsingFunction
.Eof );
378
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
390
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
433
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
445
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
496
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
508
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
551
if ( parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary ) {
563
if ( parsingFunction ==
ParsingFunction
.InReadContentAsBinary ) {
604
if ( parsingFunction !=
ParsingFunction
.InReadValueChunk ) {
608
if ( parsingFunction ==
ParsingFunction
.PartialTextValue ) {
616
parsingFunction =
ParsingFunction
.InReadValueChunk;
1153
parsingFunction =
ParsingFunction
.ResetAttributesRootLevel;
1511
if (parsingFunction ==
ParsingFunction
.EntityReference) {
1863
parsingFunction =
ParsingFunction
.MoveToElementContent;
1874
parsingFunction =
ParsingFunction
.PopEmptyElementContext;
2091
nextParsingFunction = (index > 0) ? parsingFunction :
ParsingFunction
.DocumentContent;
2092
parsingFunction =
ParsingFunction
.PopElementContext;
2195
parsingFunction =
ParsingFunction
.MoveToElementContent;
2208
parsingFunction =
ParsingFunction
.PopEmptyElementContext;
2838
parsingFunction =
ParsingFunction
.PartialTextValue;
2886
parsingFunction =
ParsingFunction
.PartialTextValue;
2901
if (parsingFunction ==
ParsingFunction
.ReportEndEntity) {
2906
else if (parsingFunction ==
ParsingFunction
.EntityReference) {
3162
parsingFunction =
ParsingFunction
.EntityReference;
3252
parsingFunction =
ParsingFunction
.ReportEndEntity;
3288
Debug.Assert( parsingFunction ==
ParsingFunction
.PartialTextValue ||
3289
( parsingFunction ==
ParsingFunction
.InReadValueChunk && incReadState == IncrementalReadState.ReadValueChunk_OnPartialValue ) );
3321
case
ParsingFunction
.InReadAttributeValue:
3324
case
ParsingFunction
.InReadValueChunk:
3336
case
ParsingFunction
.InReadContentAsBinary:
3337
case
ParsingFunction
.InReadElementContentAsBinary:
3360
Debug.Assert( parsingFunction ==
ParsingFunction
.PartialTextValue || parsingFunction ==
ParsingFunction
.InReadValueChunk ||
3361
parsingFunction ==
ParsingFunction
.InReadContentAsBinary || parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary );
3380
Debug.Assert( parsingFunction ==
ParsingFunction
.InReadValueChunk );
3384
Debug.Assert( ( index > 0 ) ? nextParsingFunction ==
ParsingFunction
.ElementContent : nextParsingFunction ==
ParsingFunction
.DocumentContent );
3397
Debug.Assert( parsingFunction ==
ParsingFunction
.InReadContentAsBinary || parsingFunction ==
ParsingFunction
.InReadElementContentAsBinary );
3401
Debug.Assert( ( index > 0 ) ? nextParsingFunction ==
ParsingFunction
.ElementContent : nextParsingFunction ==
ParsingFunction
.DocumentContent );
4130
parsingFunction =
ParsingFunction
.ResetAttributesRootLevel;
4903
Debug.Assert( parsingFunction !=
ParsingFunction
.InReadContentAsBinary );
4905
if ( parsingFunction ==
ParsingFunction
.InReadValueChunk ) {
4908
if ( parsingFunction ==
ParsingFunction
.InIncrementalRead ) {
4918
SetupReadContentAsBinaryState(
ParsingFunction
.InReadContentAsBinary );
4924
Debug.Assert( parsingFunction !=
ParsingFunction
.InReadElementContentAsBinary );
4944
SetupReadContentAsBinaryState(
ParsingFunction
.InReadElementContentAsBinary );
5047
ParsingFunction
tmp = parsingFunction;
5079
Debug.Assert( parsingFunction !=
ParsingFunction
.InReadElementContentAsBinary );