28 writes to _currentState
System.Private.Xml (28)
System\Xml\Core\XmlTextWriter.cs (28)
275
_currentState
= State.Start;
430
_currentState
= State.Start;
435
_currentState
= State.Error;
474
_currentState
= State.Error;
552
_currentState
= State.Error;
711
_currentState
= State.Error;
725
_currentState
= State.Error;
752
_currentState
= State.Error;
776
_currentState
= State.Error;
801
_currentState
= State.Error;
817
_currentState
= State.Error;
832
_currentState
= State.Error;
856
_currentState
= State.Error;
874
_currentState
= State.Error;
889
_currentState
= State.Error;
905
_currentState
= State.Error;
920
_currentState
= State.Error;
935
_currentState
= State.Error;
962
_currentState
= State.Error;
978
_currentState
= State.Error;
1026
_currentState
= State.Closed;
1048
_currentState
= State.Error;
1091
_currentState
= State.Error;
1159
_currentState
= State.Error;
1176
_currentState
= State.Prolog;
1198
_currentState
= State.Error;
1322
_currentState
= newState;
1377
_currentState
= State.Error;
20 references to _currentState
System.Private.Xml (20)
System\Xml\Core\XmlTextWriter.cs (20)
333
if (
_currentState
!= State.Start)
418
if (
_currentState
!= State.Epilog)
420
if (
_currentState
== State.Closed)
988
switch (
_currentState
)
1008
Debug.Fail($"Unexpected state {
_currentState
}");
1066
if (
_currentState
!= State.Attribute)
1171
if (
_currentState
!= State.Start)
1205
if (
_currentState
== State.Closed)
1209
else if (
_currentState
== State.Error)
1214
State newState = _stateTable[(int)token * 8 + (int)
_currentState
];
1217
throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)
_currentState
]));
1223
if (_indented &&
_currentState
!= State.Start)
1233
if (
_currentState
== State.Attribute)
1238
else if (
_currentState
== State.Element)
1246
else if (_indented &&
_currentState
!= State.Start)
1258
if (
_currentState
== State.Attribute)
1262
if (
_currentState
== State.Content)
1281
if (
_currentState
== State.Attribute)
1286
else if (
_currentState
== State.Element)
1309
if (
_currentState
== State.Element && _lastToken != Token.Content)