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