2 writes to Kind
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (1)
783
@try.
Kind
= ControlFlowRegionKind.LocalLifetime;
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
34
Kind
= kind;
33 references to Kind
Microsoft.CodeAnalysis (33)
Operations\ControlFlowGraphBuilder.cs (23)
538
if (r.
Kind
== ControlFlowRegionKind.LocalLifetime &&
547
switch (region.
Kind
)
561
if (subRegion.
Kind
== ControlFlowRegionKind.LocalLifetime && subRegion.FirstBlock == region.FirstBlock && subRegion.LastBlock == region.LastBlock)
563
Debug.Assert(region.
Kind
!= ControlFlowRegionKind.Root);
581
if (subRegion.
Kind
== ControlFlowRegionKind.LocalLifetime && !subRegion.HasLocalFunctions &&
612
throw ExceptionUtilities.UnexpectedValue(region.
Kind
);
624
Debug.Assert(subRegion.
Kind
!= ControlFlowRegionKind.Root);
738
Debug.Assert(currentRegion.
Kind
== ControlFlowRegionKind.Filter ||
739
currentRegion.
Kind
== ControlFlowRegionKind.Finally);
760
if (currentRegion.
Kind
== ControlFlowRegionKind.Finally &&
767
Debug.Assert(tryAndFinally.
Kind
== ControlFlowRegionKind.TryAndFinally);
771
Debug.Assert(@try.
Kind
== ControlFlowRegionKind.Try);
1031
switch (currentRegion.
Kind
)
3688
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
3765
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndCatch);
3771
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
4103
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
4110
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndFinally);
4125
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndFinally);
4405
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
4453
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndFinally);
4542
Debug.Assert(_currentRegion.
Kind
== ControlFlowRegionKind.Try);
4559
Debug.Assert(_currentRegion.
Kind
== ControlFlowRegionKind.TryAndFinally);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (10)
66
Debug.Assert(
Kind
!= ControlFlowRegionKind.Root);
78
Debug.Assert(
Kind
!= ControlFlowRegionKind.Root);
97
Debug.Assert(
Kind
!= ControlFlowRegionKind.Root);
110
Debug.Assert(
Kind
!= ControlFlowRegionKind.Root);
142
ControlFlowRegionKind lastKind = Regions.Last().
Kind
;
143
switch (
Kind
)
251
Debug.Assert((
Kind
!= ControlFlowRegionKind.FilterAndHandler &&
252
Kind
!= ControlFlowRegionKind.TryAndCatch &&
253
Kind
!= ControlFlowRegionKind.TryAndFinally) ||
337
var result = new ControlFlowRegion(
Kind
, FirstBlock.Ordinal, LastBlock.Ordinal, subRegions,