100 writes to _currentState
System.Private.Xml (100)
System\Xml\Core\XmlWellFormedWriter.cs (48)
260_currentState = State.Start; 354_currentState = State.Error; 374_currentState = State.Error; 418_currentState = State.Error; 491_currentState = State.Error; 533_currentState = State.AfterRootEle; 537_currentState = State.TopLevel; 543_currentState = State.Error; 584_currentState = State.AfterRootEle; 588_currentState = State.TopLevel; 594_currentState = State.Error; 730_currentState = State.Error; 849_currentState = State.Error; 864_currentState = State.Error; 879_currentState = State.Error; 924_currentState = State.Error; 949_currentState = State.Error; 975_currentState = State.Error; 1001_currentState = State.Error; 1028_currentState = State.Error; 1054_currentState = State.Error; 1080_currentState = State.Error; 1106_currentState = State.Error; 1132_currentState = State.Error; 1151_currentState = State.Error; 1180_currentState = State.Error; 1208_currentState = State.Closed; 1222_currentState = State.Error; 1251_currentState = State.Error; 1319_currentState = State.Error; 1333_currentState = State.Error; 1347_currentState = State.Error; 1361_currentState = State.Error; 1375_currentState = State.Error; 1389_currentState = State.Error; 1403_currentState = State.Error; 1417_currentState = State.Error; 1431_currentState = State.Error; 1457_currentState = State.Error; 1479_currentState = State.Error; 1497_currentState = State.Error; 1533_currentState = State.SpecialAttr; 1535_currentState = State.RootLevelSpecAttr; 1573_currentState = State.Error; 1917_currentState = State.Content; 1922_currentState = State.Attribute; 1927_currentState = State.RootLevelAttr; 1956_currentState = newState;
System\Xml\Core\XmlWellFormedWriterAsync.cs (52)
54_currentState = State.Error; 75_currentState = State.Error; 119_currentState = State.Error; 145_currentState = State.Error; 172_currentState = State.Error; 197_currentState = State.Error; 254_currentState = State.Error; 268_currentState = State.Error; 297_currentState = State.Error; 311_currentState = State.Error; 326_currentState = State.Error; 355_currentState = State.Error; 379_currentState = State.AfterRootEle; 383_currentState = State.TopLevel; 389_currentState = State.Error; 405_currentState = State.Error; 434_currentState = State.Error; 470_currentState = State.Error; 589_currentState = State.Error; 603_currentState = State.Error; 618_currentState = State.Error; 638_currentState = State.Error; 748_currentState = State.Error; 764_currentState = State.Error; 780_currentState = State.Error; 825_currentState = State.Error; 850_currentState = State.Error; 876_currentState = State.Error; 902_currentState = State.Error; 930_currentState = State.Error; 957_currentState = State.Error; 978_currentState = State.Error; 992_currentState = State.Error; 1018_currentState = State.Error; 1044_currentState = State.Error; 1070_currentState = State.Error; 1097_currentState = State.Error; 1111_currentState = State.Error; 1124_currentState = State.Error; 1169_currentState = State.Error; 1187_currentState = State.Error; 1223_currentState = State.Error; 1233_currentState = newState; 1245_currentState = newState; 1252_currentState = newState; 1264_currentState = newState; 1329_currentState = State.Content; 1337_currentState = State.Attribute; 1345_currentState = State.RootLevelAttr; 1373_currentState = newState; 1428_currentState = State.Error; 1456_currentState = State.Closed;
32 references to _currentState
System.Private.Xml (32)
System\Xml\Core\XmlWellFormedWriter.cs (20)
292if ((int)_currentState <= (int)State.Error) 294return s_state2WriteState[(int)_currentState]; 340State prevState = _currentState; 898if (_currentState != State.Start) 1158if (_currentState != State.Closed) 1164while (_currentState != State.Error && _elemTop > 0) 1171if (_currentState != State.Error && _elemTop > 0) 1292if (_currentState != State.Attribute) 1525return (_currentState == State.B64Content || _currentState == State.B64Attribute || _currentState == State.RootLevelB64Attr); 1532if (State.Attribute == _currentState) 1534else if (State.RootLevelAttr == _currentState) 1843if ((int)_currentState >= (int)State.Closed) 1845if (_currentState == State.Closed || _currentState == State.Error) 1851throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, tokenName[(int)token], GetStateName(_currentState))); 1856State newState = _stateTable[((int)token << 4) + (int)_currentState]; 1864ThrowInvalidStateTransition(token, _currentState); 2091return (int)_currentState >= (int)State.Closed;
System\Xml\Core\XmlWellFormedWriterAsync.cs (12)
40State prevState = _currentState; 799if (_currentState != State.Start) 1143if (_currentState != State.Attribute) 1271if ((int)_currentState >= (int)State.Closed) 1273if (_currentState == State.Closed || _currentState == State.Error) 1279throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, tokenName[(int)token], GetStateName(_currentState))); 1283State newState = _stateTable[((int)token << 4) + (int)_currentState]; 1292ThrowInvalidStateTransition(token, _currentState); 1406if (_currentState != State.Closed) 1412while (_currentState != State.Error && _elemTop > 0) 1419if (_currentState != State.Error && _elemTop > 0)