13 references to MethodBody
Microsoft.AspNetCore.Mvc.Analyzers (1)
TagHelpersInCodeBlocksAnalyzer.cs (1)
120if (operation.Kind == OperationKind.MethodBody)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiConventionAnalyzer.cs (1)
92}, OperationKind.MethodBody);
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2955case OperationKind.MethodBody:
Generated\OperationKind.Generated.cs (1)
204/// <summary>Indicates an <see cref="IMethodBodyOperation"/>. Use <see cref="MethodBody"/> instead.</summary>
Generated\Operations.Generated.cs (2)
3022/// <item><description><see cref="OperationKind.MethodBody"/></description></item> 8718public override OperationKind Kind => OperationKind.MethodBody;
Operations\ControlFlowGraphBuilder.cs (1)
97body.Kind == OperationKind.MethodBody ||
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
36143Assert.Equal(OperationKind.MethodBody, expressionBodyOperation.Parent.Kind);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests.cs (1)
592VerifyRootAndModelForOperationAncestors(operation, model, expectedRootOperationKind: OperationKind.MethodBody, expectedRootSyntax: methodDeclSyntax);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\ControlFlowGraphVerifier.cs (1)
35operationRoot.Parent?.Kind == OperationKind.MethodBody) ?
Compilation\OperationTreeVerifier.cs (1)
146case OperationKind.MethodBody:
Compilation\TestOperationVisitor.cs (1)
1660Assert.Equal(OperationKind.MethodBody, operation.Kind);
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1468}, OperationKind.MethodBody, OperationKind.ConstructorBody);