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