1 implementation of ExpressionBody
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8664public IBlockOperation? ExpressionBody { get; }
14 references to ExpressionBody
Microsoft.AspNetCore.App.Analyzers (1)
RouteHandlers\RouteHandlerAnalyzer.cs (1)
150methodBody.BlockBody ?? methodBody.ExpressionBody,
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
1508VisitMethodBodies(operation.BlockBody, operation.ExpressionBody);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
86methodSymbol, methodOperation.BlockBody ?? methodOperation.ExpressionBody); 1122=> body.BlockBody ?? body.ExpressionBody;
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
86methodSymbol, methodOperation.BlockBody ?? methodOperation.ExpressionBody); 1122=> body.BlockBody ?? body.ExpressionBody;
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (2)
2098Visit(operation.ExpressionBody, "ExpressionBody"); 2106Visit(operation.ExpressionBody, "ExpressionBody");
Compilation\TestOperationVisitor.cs (6)
1648if (operation.ExpressionBody != null) 1650builder.Add(operation.ExpressionBody); 1664if (operation.ExpressionBody != null) 1666AssertEx.Equal(new[] { operation.BlockBody, operation.ExpressionBody }, operation.ChildOperations); 1673else if (operation.ExpressionBody != null) 1675Assert.Same(operation.ExpressionBody, operation.ChildOperations.Single());