100 writes to _currentState
System.Private.Xml (100)
System\Xml\Core\XmlWellFormedWriter.cs (48)
257
_currentState
= State.Start;
351
_currentState
= State.Error;
371
_currentState
= State.Error;
415
_currentState
= State.Error;
488
_currentState
= State.Error;
530
_currentState
= State.AfterRootEle;
534
_currentState
= State.TopLevel;
540
_currentState
= State.Error;
581
_currentState
= State.AfterRootEle;
585
_currentState
= State.TopLevel;
591
_currentState
= State.Error;
727
_currentState
= State.Error;
846
_currentState
= State.Error;
861
_currentState
= State.Error;
876
_currentState
= State.Error;
921
_currentState
= State.Error;
946
_currentState
= State.Error;
972
_currentState
= State.Error;
998
_currentState
= State.Error;
1025
_currentState
= State.Error;
1051
_currentState
= State.Error;
1077
_currentState
= State.Error;
1103
_currentState
= State.Error;
1129
_currentState
= State.Error;
1148
_currentState
= State.Error;
1177
_currentState
= State.Error;
1205
_currentState
= State.Closed;
1219
_currentState
= State.Error;
1248
_currentState
= State.Error;
1316
_currentState
= State.Error;
1330
_currentState
= State.Error;
1344
_currentState
= State.Error;
1358
_currentState
= State.Error;
1372
_currentState
= State.Error;
1386
_currentState
= State.Error;
1400
_currentState
= State.Error;
1414
_currentState
= State.Error;
1428
_currentState
= State.Error;
1454
_currentState
= State.Error;
1476
_currentState
= State.Error;
1494
_currentState
= State.Error;
1530
_currentState
= State.SpecialAttr;
1532
_currentState
= State.RootLevelSpecAttr;
1570
_currentState
= State.Error;
1914
_currentState
= State.Content;
1919
_currentState
= State.Attribute;
1924
_currentState
= State.RootLevelAttr;
1953
_currentState
= newState;
System\Xml\Core\XmlWellFormedWriterAsync.cs (52)
54
_currentState
= State.Error;
75
_currentState
= State.Error;
119
_currentState
= State.Error;
145
_currentState
= State.Error;
172
_currentState
= State.Error;
197
_currentState
= State.Error;
254
_currentState
= State.Error;
268
_currentState
= State.Error;
297
_currentState
= State.Error;
311
_currentState
= State.Error;
326
_currentState
= State.Error;
355
_currentState
= State.Error;
379
_currentState
= State.AfterRootEle;
383
_currentState
= State.TopLevel;
389
_currentState
= State.Error;
405
_currentState
= State.Error;
434
_currentState
= State.Error;
470
_currentState
= State.Error;
589
_currentState
= State.Error;
603
_currentState
= State.Error;
618
_currentState
= State.Error;
638
_currentState
= State.Error;
748
_currentState
= State.Error;
764
_currentState
= State.Error;
780
_currentState
= State.Error;
825
_currentState
= State.Error;
850
_currentState
= State.Error;
876
_currentState
= State.Error;
902
_currentState
= State.Error;
930
_currentState
= State.Error;
957
_currentState
= State.Error;
978
_currentState
= State.Error;
992
_currentState
= State.Error;
1018
_currentState
= State.Error;
1044
_currentState
= State.Error;
1070
_currentState
= State.Error;
1097
_currentState
= State.Error;
1111
_currentState
= State.Error;
1124
_currentState
= State.Error;
1169
_currentState
= State.Error;
1187
_currentState
= State.Error;
1223
_currentState
= State.Error;
1233
_currentState
= newState;
1245
_currentState
= newState;
1252
_currentState
= newState;
1264
_currentState
= newState;
1329
_currentState
= State.Content;
1337
_currentState
= State.Attribute;
1345
_currentState
= State.RootLevelAttr;
1373
_currentState
= newState;
1428
_currentState
= State.Error;
1456
_currentState
= State.Closed;
32 references to _currentState
System.Private.Xml (32)
System\Xml\Core\XmlWellFormedWriter.cs (20)
289
if ((int)
_currentState
<= (int)State.Error)
291
return s_state2WriteState[(int)
_currentState
];
337
State prevState =
_currentState
;
895
if (
_currentState
!= State.Start)
1155
if (
_currentState
!= State.Closed)
1161
while (
_currentState
!= State.Error && _elemTop > 0)
1168
if (
_currentState
!= State.Error && _elemTop > 0)
1289
if (
_currentState
!= State.Attribute)
1522
return (
_currentState
== State.B64Content ||
_currentState
== State.B64Attribute ||
_currentState
== State.RootLevelB64Attr);
1529
if (State.Attribute ==
_currentState
)
1531
else if (State.RootLevelAttr ==
_currentState
)
1840
if ((int)
_currentState
>= (int)State.Closed)
1842
if (
_currentState
== State.Closed ||
_currentState
== State.Error)
1848
throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, tokenName[(int)token], GetStateName(
_currentState
)));
1853
State newState = _stateTable[((int)token << 4) + (int)
_currentState
];
1861
ThrowInvalidStateTransition(token,
_currentState
);
2088
return (int)
_currentState
>= (int)State.Closed;
System\Xml\Core\XmlWellFormedWriterAsync.cs (12)
40
State prevState =
_currentState
;
799
if (
_currentState
!= State.Start)
1143
if (
_currentState
!= State.Attribute)
1271
if ((int)
_currentState
>= (int)State.Closed)
1273
if (
_currentState
== State.Closed ||
_currentState
== State.Error)
1279
throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, tokenName[(int)token], GetStateName(
_currentState
)));
1283
State newState = _stateTable[((int)token << 4) + (int)
_currentState
];
1292
ThrowInvalidStateTransition(token,
_currentState
);
1406
if (
_currentState
!= State.Closed)
1412
while (
_currentState
!= State.Error && _elemTop > 0)
1419
if (
_currentState
!= State.Error && _elemTop > 0)