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)
333if (_currentState != State.Start) 418if (_currentState != State.Epilog) 420if (_currentState == State.Closed) 988switch (_currentState) 1008Debug.Fail($"Unexpected state {_currentState}"); 1066if (_currentState != State.Attribute) 1171if (_currentState != State.Start) 1205if (_currentState == State.Closed) 1209else if (_currentState == State.Error) 1214State newState = _stateTable[(int)token * 8 + (int)_currentState]; 1217throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)_currentState])); 1223if (_indented && _currentState != State.Start) 1233if (_currentState == State.Attribute) 1238else if (_currentState == State.Element) 1246else if (_indented && _currentState != State.Start) 1258if (_currentState == State.Attribute) 1262if (_currentState == State.Content) 1281if (_currentState == State.Attribute) 1286else if (_currentState == State.Element) 1309if (_currentState == State.Element && _lastToken != Token.Content)