100 writes to _currentState
System.Private.Xml (100)
System\Xml\Core\XmlWellFormedWriter.cs (48)
260
_currentState
= State.Start;
354
_currentState
= State.Error;
374
_currentState
= State.Error;
418
_currentState
= State.Error;
491
_currentState
= State.Error;
533
_currentState
= State.AfterRootEle;
537
_currentState
= State.TopLevel;
543
_currentState
= State.Error;
584
_currentState
= State.AfterRootEle;
588
_currentState
= State.TopLevel;
594
_currentState
= State.Error;
730
_currentState
= State.Error;
849
_currentState
= State.Error;
864
_currentState
= State.Error;
879
_currentState
= State.Error;
924
_currentState
= State.Error;
949
_currentState
= State.Error;
975
_currentState
= State.Error;
1001
_currentState
= State.Error;
1028
_currentState
= State.Error;
1054
_currentState
= State.Error;
1080
_currentState
= State.Error;
1106
_currentState
= State.Error;
1132
_currentState
= State.Error;
1151
_currentState
= State.Error;
1180
_currentState
= State.Error;
1208
_currentState
= State.Closed;
1222
_currentState
= State.Error;
1251
_currentState
= State.Error;
1319
_currentState
= State.Error;
1333
_currentState
= State.Error;
1347
_currentState
= State.Error;
1361
_currentState
= State.Error;
1375
_currentState
= State.Error;
1389
_currentState
= State.Error;
1403
_currentState
= State.Error;
1417
_currentState
= State.Error;
1431
_currentState
= State.Error;
1457
_currentState
= State.Error;
1479
_currentState
= State.Error;
1497
_currentState
= State.Error;
1533
_currentState
= State.SpecialAttr;
1535
_currentState
= State.RootLevelSpecAttr;
1573
_currentState
= State.Error;
1917
_currentState
= State.Content;
1922
_currentState
= State.Attribute;
1927
_currentState
= State.RootLevelAttr;
1956
_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)
292
if ((int)
_currentState
<= (int)State.Error)
294
return s_state2WriteState[(int)
_currentState
];
340
State prevState =
_currentState
;
898
if (
_currentState
!= State.Start)
1158
if (
_currentState
!= State.Closed)
1164
while (
_currentState
!= State.Error && _elemTop > 0)
1171
if (
_currentState
!= State.Error && _elemTop > 0)
1292
if (
_currentState
!= State.Attribute)
1525
return (
_currentState
== State.B64Content ||
_currentState
== State.B64Attribute ||
_currentState
== State.RootLevelB64Attr);
1532
if (State.Attribute ==
_currentState
)
1534
else if (State.RootLevelAttr ==
_currentState
)
1843
if ((int)
_currentState
>= (int)State.Closed)
1845
if (
_currentState
== State.Closed ||
_currentState
== State.Error)
1851
throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, tokenName[(int)token], GetStateName(
_currentState
)));
1856
State newState = _stateTable[((int)token << 4) + (int)
_currentState
];
1864
ThrowInvalidStateTransition(token,
_currentState
);
2091
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)