100 writes to _currentState
System.Private.Xml (100)
System\Xml\Core\XmlWellFormedWriter.cs (48)
257_currentState = State.Start; 351_currentState = State.Error; 371_currentState = State.Error; 415_currentState = State.Error; 488_currentState = State.Error; 530_currentState = State.AfterRootEle; 534_currentState = State.TopLevel; 540_currentState = State.Error; 581_currentState = State.AfterRootEle; 585_currentState = State.TopLevel; 591_currentState = State.Error; 727_currentState = State.Error; 846_currentState = State.Error; 861_currentState = State.Error; 876_currentState = State.Error; 921_currentState = State.Error; 946_currentState = State.Error; 972_currentState = State.Error; 998_currentState = State.Error; 1025_currentState = State.Error; 1051_currentState = State.Error; 1077_currentState = State.Error; 1103_currentState = State.Error; 1129_currentState = State.Error; 1148_currentState = State.Error; 1177_currentState = State.Error; 1205_currentState = State.Closed; 1219_currentState = State.Error; 1248_currentState = State.Error; 1316_currentState = State.Error; 1330_currentState = State.Error; 1344_currentState = State.Error; 1358_currentState = State.Error; 1372_currentState = State.Error; 1386_currentState = State.Error; 1400_currentState = State.Error; 1414_currentState = State.Error; 1428_currentState = State.Error; 1454_currentState = State.Error; 1476_currentState = State.Error; 1494_currentState = State.Error; 1530_currentState = State.SpecialAttr; 1532_currentState = State.RootLevelSpecAttr; 1570_currentState = State.Error; 1914_currentState = State.Content; 1919_currentState = State.Attribute; 1924_currentState = State.RootLevelAttr; 1953_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)
289if ((int)_currentState <= (int)State.Error) 291return s_state2WriteState[(int)_currentState]; 337State prevState = _currentState; 895if (_currentState != State.Start) 1155if (_currentState != State.Closed) 1161while (_currentState != State.Error && _elemTop > 0) 1168if (_currentState != State.Error && _elemTop > 0) 1289if (_currentState != State.Attribute) 1522return (_currentState == State.B64Content || _currentState == State.B64Attribute || _currentState == State.RootLevelB64Attr); 1529if (State.Attribute == _currentState) 1531else if (State.RootLevelAttr == _currentState) 1840if ((int)_currentState >= (int)State.Closed) 1842if (_currentState == State.Closed || _currentState == State.Error) 1848throw new InvalidOperationException(SR.Format(SR.Xml_WrongToken, tokenName[(int)token], GetStateName(_currentState))); 1853State newState = _stateTable[((int)token << 4) + (int)_currentState]; 1861ThrowInvalidStateTransition(token, _currentState); 2088return (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)