28 writes to _currentState
System.Private.Xml (28)
System\Xml\Core\XmlTextWriter.cs (28)
274
_currentState
= State.Start;
429
_currentState
= State.Start;
434
_currentState
= State.Error;
473
_currentState
= State.Error;
551
_currentState
= State.Error;
710
_currentState
= State.Error;
724
_currentState
= State.Error;
751
_currentState
= State.Error;
775
_currentState
= State.Error;
800
_currentState
= State.Error;
816
_currentState
= State.Error;
831
_currentState
= State.Error;
855
_currentState
= State.Error;
873
_currentState
= State.Error;
888
_currentState
= State.Error;
904
_currentState
= State.Error;
919
_currentState
= State.Error;
934
_currentState
= State.Error;
961
_currentState
= State.Error;
977
_currentState
= State.Error;
1025
_currentState
= State.Closed;
1047
_currentState
= State.Error;
1090
_currentState
= State.Error;
1158
_currentState
= State.Error;
1175
_currentState
= State.Prolog;
1197
_currentState
= State.Error;
1321
_currentState
= newState;
1376
_currentState
= State.Error;
20 references to _currentState
System.Private.Xml (20)
System\Xml\Core\XmlTextWriter.cs (20)
332
if (
_currentState
!= State.Start)
417
if (
_currentState
!= State.Epilog)
419
if (
_currentState
== State.Closed)
987
switch (
_currentState
)
1007
Debug.Fail($"Unexpected state {
_currentState
}");
1065
if (
_currentState
!= State.Attribute)
1170
if (
_currentState
!= State.Start)
1204
if (
_currentState
== State.Closed)
1208
else if (
_currentState
== State.Error)
1213
State newState = _stateTable[(int)token * 8 + (int)
_currentState
];
1216
throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)
_currentState
]));
1222
if (_indented &&
_currentState
!= State.Start)
1232
if (
_currentState
== State.Attribute)
1237
else if (
_currentState
== State.Element)
1245
else if (_indented &&
_currentState
!= State.Start)
1257
if (
_currentState
== State.Attribute)
1261
if (
_currentState
== State.Content)
1280
if (
_currentState
== State.Attribute)
1285
else if (
_currentState
== State.Element)
1308
if (
_currentState
== State.Element && _lastToken != Token.Content)