27 references to Block
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
58if (parent.Kind == OperationKind.Block && parent.Parent != null)
Microsoft.CodeAnalysis (4)
Generated\Operations.Generated.cs (2)
52/// <item><description><see cref="OperationKind.Block"/></description></item> 4052public override OperationKind Kind => OperationKind.Block;
Operations\ControlFlowGraphBuilder.cs (1)
96Debug.Assert(body.Kind == OperationKind.Block ||
Operations\OperationNodes.cs (1)
699Debug.Assert(statements.All(s => s.Parent != this && s.Parent!.Kind is OperationKind.Block or OperationKind.SwitchCase));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
69case OperationKind.Block:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenLocalFunctionTests.cs (1)
162Assert.Equal(OperationKind.Block, objectCreationOperation.Parent.Parent.Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Semantics\PrimaryConstructorTests.cs (6)
4546Assert.Equal(OperationKind.Block, context.OperationBlocks[2].Kind); 4555Assert.Equal(OperationKind.Block, context.OperationBlocks[0].Kind); 4684Assert.Equal(OperationKind.Block, context.OperationBlocks[2].Kind); 4695Assert.Equal(OperationKind.Block, context.OperationBlocks[0].Kind); 4754Assert.Equal(OperationKind.Block, context.OperationBlocks[2].Kind); 4763Assert.Equal(OperationKind.Block, context.OperationBlocks[0].Kind);
Semantics\RecordTests.cs (6)
27054Assert.Equal(OperationKind.Block, context.OperationBlocks[2].Kind); 27063Assert.Equal(OperationKind.Block, context.OperationBlocks[0].Kind); 27192Assert.Equal(OperationKind.Block, context.OperationBlocks[2].Kind); 27203Assert.Equal(OperationKind.Block, context.OperationBlocks[0].Kind); 27262Assert.Equal(OperationKind.Block, context.OperationBlocks[2].Kind); 27271Assert.Equal(OperationKind.Block, context.OperationBlocks[0].Kind);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests.cs (1)
627VerifyRootAndModelForOperationAncestors(operation, speculativeModel, expectedRootOperationKind: OperationKind.Block, expectedRootSyntax: speculatedBlock);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\TopLevelStatementsTests.cs (2)
6715context.RegisterOperationAction(Handle2, OperationKind.Block); 7414context.RegisterOperationAction(Handle2, OperationKind.Block);
Microsoft.CodeAnalysis.Features (1)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
169case OperationKind.Block:
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\ControlFlowGraphVerifier.cs (2)
33operationRoot = operationRoot.Kind == OperationKind.Block && 1837case OperationKind.Block:
Compilation\TestOperationVisitor.cs (1)
119Assert.Equal(OperationKind.Block, operation.Kind);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
69case OperationKind.Block: