3 references to TryConvertToStatement
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArrowExpressionClauseSyntaxExtensions.cs (1)
37
if (!arrowExpression.Expression.
TryConvertToStatement
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
639
if (expressionBody.
TryConvertToStatement
(semicolonToken, createReturnStatementForExpression: false, out var statement))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
248
ExpressionSyntax expression => expression.
TryConvertToStatement
(semicolonToken, createReturnStatementForExpression, out statement),