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)
332if (_currentState != State.Start) 417if (_currentState != State.Epilog) 419if (_currentState == State.Closed) 987switch (_currentState) 1007Debug.Fail($"Unexpected state {_currentState}"); 1065if (_currentState != State.Attribute) 1170if (_currentState != State.Start) 1204if (_currentState == State.Closed) 1208else if (_currentState == State.Error) 1213State newState = _stateTable[(int)token * 8 + (int)_currentState]; 1216throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)_currentState])); 1222if (_indented && _currentState != State.Start) 1232if (_currentState == State.Attribute) 1237else if (_currentState == State.Element) 1245else if (_indented && _currentState != State.Start) 1257if (_currentState == State.Attribute) 1261if (_currentState == State.Content) 1280if (_currentState == State.Attribute) 1285else if (_currentState == State.Element) 1308if (_currentState == State.Element && _lastToken != Token.Content)