2 writes to Kind
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (1)
775
@try.
Kind
= ControlFlowRegionKind.LocalLifetime;
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
34
Kind
= kind;
33 references to Kind
Microsoft.CodeAnalysis (33)
Operations\ControlFlowGraphBuilder.cs (23)
530
if (r.
Kind
== ControlFlowRegionKind.LocalLifetime &&
539
switch (region.
Kind
)
553
if (subRegion.
Kind
== ControlFlowRegionKind.LocalLifetime && subRegion.FirstBlock == region.FirstBlock && subRegion.LastBlock == region.LastBlock)
555
Debug.Assert(region.
Kind
!= ControlFlowRegionKind.Root);
573
if (subRegion.
Kind
== ControlFlowRegionKind.LocalLifetime && !subRegion.HasLocalFunctions &&
604
throw ExceptionUtilities.UnexpectedValue(region.
Kind
);
616
Debug.Assert(subRegion.
Kind
!= ControlFlowRegionKind.Root);
730
Debug.Assert(currentRegion.
Kind
== ControlFlowRegionKind.Filter ||
731
currentRegion.
Kind
== ControlFlowRegionKind.Finally);
752
if (currentRegion.
Kind
== ControlFlowRegionKind.Finally &&
759
Debug.Assert(tryAndFinally.
Kind
== ControlFlowRegionKind.TryAndFinally);
763
Debug.Assert(@try.
Kind
== ControlFlowRegionKind.Try);
1023
switch (currentRegion.
Kind
)
3678
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
3755
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndCatch);
3761
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
4092
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
4099
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndFinally);
4114
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndFinally);
4394
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.Try);
4442
Debug.Assert(CurrentRegionRequired.
Kind
== ControlFlowRegionKind.TryAndFinally);
4531
Debug.Assert(_currentRegion.
Kind
== ControlFlowRegionKind.Try);
4548
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,