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