98 writes to currentState
System.Xml (98)
System\Xml\Core\XmlWellFormedWriter.cs (48)
269
currentState
= State.Start;
348
currentState
= State.Error;
366
currentState
= State.Error;
401
currentState
= State.Error;
468
currentState
= State.Error;
502
currentState
= State.AfterRootEle;
505
currentState
= State.TopLevel;
510
currentState
= State.Error;
543
currentState
= State.AfterRootEle;
546
currentState
= State.TopLevel;
551
currentState
= State.Error;
662
currentState
= State.Error;
756
currentState
= State.Error;
770
currentState
= State.Error;
784
currentState
= State.Error;
825
currentState
= State.Error;
847
currentState
= State.Error;
867
currentState
= State.Error;
887
currentState
= State.Error;
910
currentState
= State.Error;
930
currentState
= State.Error;
959
currentState
= State.Error;
988
currentState
= State.Error;
1008
currentState
= State.Error;
1032
currentState
= State.Error;
1052
currentState
= State.Error;
1074
currentState
= State.Closed;
1085
currentState
= State.Error;
1109
currentState
= State.Error;
1165
currentState
= State.Error;
1176
currentState
= State.Error;
1187
currentState
= State.Error;
1198
currentState
= State.Error;
1209
currentState
= State.Error;
1220
currentState
= State.Error;
1231
currentState
= State.Error;
1242
currentState
= State.Error;
1253
currentState
= State.Error;
1273
currentState
= State.Error;
1290
currentState
= State.Error;
1304
currentState
= State.Error;
1344
currentState
= State.SpecialAttr;
1346
currentState
= State.RootLevelSpecAttr;
1378
currentState
= State.Error;
1668
currentState
= State.Content;
1675
currentState
= State.Attribute;
1682
currentState
= State.RootLevelAttr;
1711
currentState
= newState;
System\Xml\Core\XmlWellFormedWriterAsync.cs (50)
45
currentState
= State.Error;
63
currentState
= State.Error;
98
currentState
= State.Error;
118
currentState
= State.Error;
139
currentState
= State.Error;
161
currentState
= State.Error;
210
currentState
= State.Error;
221
currentState
= State.Error;
245
currentState
= State.Error;
256
currentState
= State.Error;
268
currentState
= State.Error;
291
currentState
= State.Error;
310
currentState
= State.AfterRootEle;
313
currentState
= State.TopLevel;
318
currentState
= State.Error;
331
currentState
= State.Error;
354
currentState
= State.Error;
382
currentState
= State.Error;
480
currentState
= State.Error;
491
currentState
= State.Error;
503
currentState
= State.Error;
519
currentState
= State.Error;
607
currentState
= State.Error;
621
currentState
= State.Error;
635
currentState
= State.Error;
676
currentState
= State.Error;
698
currentState
= State.Error;
718
currentState
= State.Error;
738
currentState
= State.Error;
761
currentState
= State.Error;
782
currentState
= State.Error;
799
currentState
= State.Error;
810
currentState
= State.Error;
839
currentState
= State.Error;
868
currentState
= State.Error;
888
currentState
= State.Error;
919
currentState
= State.Error;
931
currentState
= State.Error;
941
currentState
= State.Error;
979
currentState
= State.Error;
993
currentState
= State.Error;
1021
currentState
= State.Error;
1029
currentState
= newState;
1039
currentState
= newState;
1044
currentState
= newState;
1054
currentState
= newState;
1112
currentState
= State.Content;
1119
currentState
= State.Attribute;
1126
currentState
= State.RootLevelAttr;
1154
currentState
= newState;
29 references to currentState
System.Xml (29)
System\Xml\Core\XmlWellFormedWriter.cs (20)
299
if ((int)
currentState
<= (int)State.Error) {
300
return state2WriteState[(int)
currentState
];
337
State prevState =
currentState
;
804
if (
currentState
!= State.Start) {
1038
if (
currentState
!= State.Closed) {
1041
while (
currentState
!= State.Error && elemTop > 0) {
1046
if (
currentState
!= State.Error && elemTop > 0) {
1144
if (
currentState
!= State.Attribute) {
1337
return (
currentState
== State.B64Content ||
currentState
== State.B64Attribute ||
currentState
== State.RootLevelB64Attr);
1343
if (State.Attribute ==
currentState
)
1345
else if (State.RootLevelAttr ==
currentState
)
1597
if ((int)
currentState
>= (int)State.Closed) {
1598
if (
currentState
== State.Closed ||
currentState
== State.Error) {
1602
throw new InvalidOperationException(Res.GetString(Res.Xml_WrongToken, tokenName[(int)token], GetStateName(
currentState
)));
1607
State newState = stateTable[((int)token << 4) + (int)
currentState
];
1613
ThrowInvalidStateTransition(token,
currentState
);
1834
return (int)
currentState
>= (int)State.Closed;
System\Xml\Core\XmlWellFormedWriterAsync.cs (9)
34
State prevState =
currentState
;
655
if (
currentState
!= State.Start) {
958
if (
currentState
!= State.Attribute) {
1060
if ((int)
currentState
>= (int)State.Closed) {
1061
if (
currentState
== State.Closed ||
currentState
== State.Error) {
1065
throw new InvalidOperationException(Res.GetString(Res.Xml_WrongToken, tokenName[(int)token], GetStateName(
currentState
)));
1069
State newState = stateTable[((int)token << 4) + (int)
currentState
];
1076
ThrowInvalidStateTransition(token,
currentState
);