290 references to State
dotnet-svcutil-lib (290)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (174)
69private State _state; 101_state = State.Initial; 203return _state == State.EndOfFile || _state == State.Closed; 217if ((int)_state <= (int)State.Closed) 463case State.Initial: 465_state = State.Interactive; 469case State.Interactive: 479_state = State.EndOfFile; 496case State.EndOfFile: 497case State.Closed: 498case State.Error: 501case State.PopNamespaceScope: 503goto case State.ClearNsAttributes; 505case State.ClearNsAttributes: 507_state = State.Interactive; 508goto case State.Interactive; 510case State.ReadElementContentAsBase64: 511case State.ReadElementContentAsBinHex: 518case State.ReadContentAsBase64: 519case State.ReadContentAsBinHex: 534if (_state == State.Closed) 541if (_state != State.EndOfFile) 564_state = State.Closed; 573case State.Initial: 577case State.Interactive: 598_state = State.EndOfFile; 613case State.Closed: 614case State.EndOfFile: 617case State.PopNamespaceScope: 619goto case State.ClearNsAttributes; 621case State.ClearNsAttributes: 623_state = State.Interactive; 624goto case State.Interactive; 626case State.ReadElementContentAsBase64: 627case State.ReadElementContentAsBinHex: 634case State.ReadContentAsBase64: 635case State.ReadContentAsBinHex: 642case State.Error: 662_state = State.Error; 678_state = State.Error; 694_state = State.Error; 710_state = State.Error; 726_state = State.Error; 742_state = State.Error; 758_state = State.Error; 774_state = State.Error; 790_state = State.Error; 806_state = State.Error; 823case State.Initial: 824case State.EndOfFile: 825case State.Closed: 826case State.Error: 829case State.ClearNsAttributes: 830case State.PopNamespaceScope: 874case State.Interactive: 875_state = State.ReadContentAsBase64; 876goto case State.ReadContentAsBase64; 878case State.ReadContentAsBase64: 882_state = State.Interactive; 887case State.ReadContentAsBinHex: 888case State.ReadElementContentAsBase64: 889case State.ReadElementContentAsBinHex: 902case State.Initial: 903case State.EndOfFile: 904case State.Closed: 905case State.Error: 908case State.Interactive: 909case State.PopNamespaceScope: 910case State.ClearNsAttributes: 911if (!InitReadElementContentAsBinary(State.ReadElementContentAsBase64)) 915goto case State.ReadElementContentAsBase64; 917case State.ReadElementContentAsBase64: 929_state = State.Interactive; 935_state = State.EndOfFile; 944case State.ReadContentAsBase64: 945case State.ReadContentAsBinHex: 946case State.ReadElementContentAsBinHex: 959case State.Initial: 960case State.EndOfFile: 961case State.Closed: 962case State.Error: 965case State.ClearNsAttributes: 966case State.PopNamespaceScope: 1010case State.Interactive: 1011_state = State.ReadContentAsBinHex; 1012goto case State.ReadContentAsBinHex; 1014case State.ReadContentAsBinHex: 1018_state = State.Interactive; 1023case State.ReadContentAsBase64: 1024case State.ReadElementContentAsBase64: 1025case State.ReadElementContentAsBinHex: 1038case State.Initial: 1039case State.EndOfFile: 1040case State.Closed: 1041case State.Error: 1044case State.Interactive: 1045case State.PopNamespaceScope: 1046case State.ClearNsAttributes: 1047if (!InitReadElementContentAsBinary(State.ReadElementContentAsBinHex)) 1051goto case State.ReadElementContentAsBinHex; 1052case State.ReadElementContentAsBinHex: 1064_state = State.Interactive; 1070_state = State.EndOfFile; 1079case State.ReadContentAsBase64: 1080case State.ReadContentAsBinHex: 1081case State.ReadElementContentAsBase64: 1102case State.Initial: 1103case State.EndOfFile: 1104case State.Closed: 1105case State.Error: 1108case State.ClearNsAttributes: 1109case State.PopNamespaceScope: 1132goto case State.Interactive; 1134case State.Interactive: 1137case State.ReadElementContentAsBase64: 1138case State.ReadElementContentAsBinHex: 1139case State.ReadContentAsBase64: 1140case State.ReadContentAsBinHex: 1281_state = State.PopNamespaceScope; 1285_state = State.PopNamespaceScope; 1319Debug.Assert(_state == State.ClearNsAttributes || _state == State.Interactive || _state == State.PopNamespaceScope); 1320_state = State.ClearNsAttributes; 1354private bool InitReadElementContentAsBinary(State binaryState) 1380Debug.Assert(_state == State.Interactive); 1387Debug.Assert(_state == State.ReadElementContentAsBase64 || _state == State.ReadElementContentAsBinHex); 1390if (_state == State.ReadElementContentAsBase64) 1405_state = State.Interactive; 1411_state = State.EndOfFile; 1421Debug.Assert(_state == State.ReadContentAsBase64 || _state == State.ReadContentAsBinHex); 1424if (_state == State.ReadContentAsBase64) 1433_state = State.Interactive; 1439_state = State.EndOfFile; 1451Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.Initial))); 1452Debug.Assert(0 != (AttributeActiveStates & (1 << (int)State.Interactive))); 1453Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.Error))); 1454Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.EndOfFile))); 1455Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.Closed))); 1456Debug.Assert(0 != (AttributeActiveStates & (1 << (int)State.PopNamespaceScope))); 1457Debug.Assert(0 != (AttributeActiveStates & (1 << (int)State.ClearNsAttributes))); 1458Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.ReadElementContentAsBase64))); 1459Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.ReadElementContentAsBinHex))); 1460Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.ReadContentAsBase64))); 1461Debug.Assert(0 == (AttributeActiveStates & (1 << (int)State.ReadContentAsBinHex))); 1472Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)State.Initial))); 1473Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.Interactive))); 1474Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)State.Error))); 1475Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)State.EndOfFile))); 1476Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)State.Closed))); 1477Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.PopNamespaceScope))); 1478Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.ClearNsAttributes))); 1479Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.ReadElementContentAsBase64))); 1480Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.ReadElementContentAsBinHex))); 1481Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.ReadContentAsBase64))); 1482Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)State.ReadContentAsBinHex))); 1508case State.Initial: 1509case State.EndOfFile: 1510case State.Closed: 1511case State.Error: 1514case State.Interactive: 1517case State.PopNamespaceScope: 1518case State.ClearNsAttributes: 1526case State.ReadElementContentAsBase64: 1527case State.ReadElementContentAsBinHex: 1528case State.ReadContentAsBase64: 1529case State.ReadContentAsBinHex: 1541Debug.Assert(_state == State.Interactive || 1542_state == State.PopNamespaceScope || 1543_state == State.ClearNsAttributes); 1553_state = State.PopNamespaceScope;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReaderAsync.cs (116)
37case State.Initial: 39_state = State.Interactive; 43case State.Interactive: 53_state = State.EndOfFile; 70case State.EndOfFile: 71case State.Closed: 72case State.Error: 75case State.PopNamespaceScope: 77goto case State.ClearNsAttributes; 79case State.ClearNsAttributes: 81_state = State.Interactive; 82goto case State.Interactive; 84case State.ReadElementContentAsBase64: 85case State.ReadElementContentAsBinHex: 92case State.ReadContentAsBase64: 93case State.ReadContentAsBinHex: 110case State.Initial: 114case State.Interactive: 135_state = State.EndOfFile; 150case State.Closed: 151case State.EndOfFile: 154case State.PopNamespaceScope: 156goto case State.ClearNsAttributes; 158case State.ClearNsAttributes: 160_state = State.Interactive; 161goto case State.Interactive; 163case State.ReadElementContentAsBase64: 164case State.ReadElementContentAsBinHex: 171case State.ReadContentAsBase64: 172case State.ReadContentAsBinHex: 179case State.Error: 199_state = State.Error; 215_state = State.Error; 231_state = State.Error; 240case State.Initial: 241case State.EndOfFile: 242case State.Closed: 243case State.Error: 246case State.ClearNsAttributes: 247case State.PopNamespaceScope: 291case State.Interactive: 292_state = State.ReadContentAsBase64; 293goto case State.ReadContentAsBase64; 295case State.ReadContentAsBase64: 299_state = State.Interactive; 304case State.ReadContentAsBinHex: 305case State.ReadElementContentAsBase64: 306case State.ReadElementContentAsBinHex: 319case State.Initial: 320case State.EndOfFile: 321case State.Closed: 322case State.Error: 325case State.Interactive: 326case State.PopNamespaceScope: 327case State.ClearNsAttributes: 328if (!await InitReadElementContentAsBinaryAsync(State.ReadElementContentAsBase64).ConfigureAwait(false)) 332goto case State.ReadElementContentAsBase64; 334case State.ReadElementContentAsBase64: 346_state = State.Interactive; 352_state = State.EndOfFile; 361case State.ReadContentAsBase64: 362case State.ReadContentAsBinHex: 363case State.ReadElementContentAsBinHex: 376case State.Initial: 377case State.EndOfFile: 378case State.Closed: 379case State.Error: 382case State.ClearNsAttributes: 383case State.PopNamespaceScope: 427case State.Interactive: 428_state = State.ReadContentAsBinHex; 429goto case State.ReadContentAsBinHex; 431case State.ReadContentAsBinHex: 435_state = State.Interactive; 440case State.ReadContentAsBase64: 441case State.ReadElementContentAsBase64: 442case State.ReadElementContentAsBinHex: 455case State.Initial: 456case State.EndOfFile: 457case State.Closed: 458case State.Error: 461case State.Interactive: 462case State.PopNamespaceScope: 463case State.ClearNsAttributes: 464if (!await InitReadElementContentAsBinaryAsync(State.ReadElementContentAsBinHex).ConfigureAwait(false)) 468goto case State.ReadElementContentAsBinHex; 469case State.ReadElementContentAsBinHex: 481_state = State.Interactive; 487_state = State.EndOfFile; 496case State.ReadContentAsBase64: 497case State.ReadContentAsBinHex: 498case State.ReadElementContentAsBase64: 511case State.Initial: 512case State.EndOfFile: 513case State.Closed: 514case State.Error: 517case State.ClearNsAttributes: 518case State.PopNamespaceScope: 541goto case State.Interactive; 543case State.Interactive: 546case State.ReadElementContentAsBase64: 547case State.ReadElementContentAsBinHex: 548case State.ReadContentAsBase64: 549case State.ReadContentAsBinHex: 558private async Task<bool> InitReadElementContentAsBinaryAsync(State binaryState) 584Debug.Assert(_state == State.Interactive); 591Debug.Assert(_state == State.ReadElementContentAsBase64 || _state == State.ReadElementContentAsBinHex); 594if (_state == State.ReadElementContentAsBase64) 609_state = State.Interactive; 615_state = State.EndOfFile; 625Debug.Assert(_state == State.ReadContentAsBase64 || _state == State.ReadContentAsBinHex); 628if (_state == State.ReadContentAsBase64) 637_state = State.Interactive; 643_state = State.EndOfFile;