98 writes to currentState
System.Xml (98)
System\Xml\Core\XmlWellFormedWriter.cs (48)
269currentState = State.Start; 348currentState = State.Error; 366currentState = State.Error; 401currentState = State.Error; 468currentState = State.Error; 502currentState = State.AfterRootEle; 505currentState = State.TopLevel; 510currentState = State.Error; 543currentState = State.AfterRootEle; 546currentState = State.TopLevel; 551currentState = State.Error; 662currentState = State.Error; 756currentState = State.Error; 770currentState = State.Error; 784currentState = State.Error; 825currentState = State.Error; 847currentState = State.Error; 867currentState = State.Error; 887currentState = State.Error; 910currentState = State.Error; 930currentState = State.Error; 959currentState = State.Error; 988currentState = State.Error; 1008currentState = State.Error; 1032currentState = State.Error; 1052currentState = State.Error; 1074currentState = State.Closed; 1085currentState = State.Error; 1109currentState = State.Error; 1165currentState = State.Error; 1176currentState = State.Error; 1187currentState = State.Error; 1198currentState = State.Error; 1209currentState = State.Error; 1220currentState = State.Error; 1231currentState = State.Error; 1242currentState = State.Error; 1253currentState = State.Error; 1273currentState = State.Error; 1290currentState = State.Error; 1304currentState = State.Error; 1344currentState = State.SpecialAttr; 1346currentState = State.RootLevelSpecAttr; 1378currentState = State.Error; 1668currentState = State.Content; 1675currentState = State.Attribute; 1682currentState = State.RootLevelAttr; 1711currentState = newState;
System\Xml\Core\XmlWellFormedWriterAsync.cs (50)
45currentState = State.Error; 63currentState = State.Error; 98currentState = State.Error; 118currentState = State.Error; 139currentState = State.Error; 161currentState = State.Error; 210currentState = State.Error; 221currentState = State.Error; 245currentState = State.Error; 256currentState = State.Error; 268currentState = State.Error; 291currentState = State.Error; 310currentState = State.AfterRootEle; 313currentState = State.TopLevel; 318currentState = State.Error; 331currentState = State.Error; 354currentState = State.Error; 382currentState = State.Error; 480currentState = State.Error; 491currentState = State.Error; 503currentState = State.Error; 519currentState = State.Error; 607currentState = State.Error; 621currentState = State.Error; 635currentState = State.Error; 676currentState = State.Error; 698currentState = State.Error; 718currentState = State.Error; 738currentState = State.Error; 761currentState = State.Error; 782currentState = State.Error; 799currentState = State.Error; 810currentState = State.Error; 839currentState = State.Error; 868currentState = State.Error; 888currentState = State.Error; 919currentState = State.Error; 931currentState = State.Error; 941currentState = State.Error; 979currentState = State.Error; 993currentState = State.Error; 1021currentState = State.Error; 1029currentState = newState; 1039currentState = newState; 1044currentState = newState; 1054currentState = newState; 1112currentState = State.Content; 1119currentState = State.Attribute; 1126currentState = State.RootLevelAttr; 1154currentState = newState;
29 references to currentState
System.Xml (29)
System\Xml\Core\XmlWellFormedWriter.cs (20)
299if ((int)currentState <= (int)State.Error) { 300return state2WriteState[(int)currentState]; 337State prevState = currentState; 804if (currentState != State.Start) { 1038if (currentState != State.Closed) { 1041while (currentState != State.Error && elemTop > 0) { 1046if (currentState != State.Error && elemTop > 0) { 1144if (currentState != State.Attribute) { 1337return (currentState == State.B64Content || currentState == State.B64Attribute || currentState == State.RootLevelB64Attr); 1343if (State.Attribute == currentState) 1345else if (State.RootLevelAttr == currentState) 1597if ((int)currentState >= (int)State.Closed) { 1598if (currentState == State.Closed || currentState == State.Error) { 1602throw new InvalidOperationException(Res.GetString(Res.Xml_WrongToken, tokenName[(int)token], GetStateName(currentState))); 1607State newState = stateTable[((int)token << 4) + (int)currentState]; 1613ThrowInvalidStateTransition(token, currentState); 1834return (int)currentState >= (int)State.Closed;
System\Xml\Core\XmlWellFormedWriterAsync.cs (9)
34State prevState = currentState; 655if (currentState != State.Start) { 958if (currentState != State.Attribute) { 1060if ((int)currentState >= (int)State.Closed) { 1061if (currentState == State.Closed || currentState == State.Error) { 1065throw new InvalidOperationException(Res.GetString(Res.Xml_WrongToken, tokenName[(int)token], GetStateName(currentState))); 1069State newState = stateTable[((int)token << 4) + (int)currentState]; 1076ThrowInvalidStateTransition(token, currentState);