26 references to WalkDownParentheses
Microsoft.CodeAnalysis.CSharp.Workspaces (26)
Recommendations\CSharpRecommendationServiceRunner.cs (5)
551var expression = originalExpression.WalkDownParentheses(); 589? awaitExpression.Expression.WalkDownParentheses() 590: originalExpression.WalkDownParentheses(); 601var expression = originalExpression.WalkDownParentheses(); 616var expression = originalExpression.WalkDownParentheses();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
362current = current.WalkDownParentheses();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (11)
179var isDefaultLiteralCast = castedExpressionNode.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression); 255var rewrittenOperation = rewrittenSemanticModel.GetOperation(rewrittenExpression.WalkDownParentheses(), cancellationToken); 326var isNullLiteralCast = castedExpressionNode.WalkDownParentheses().IsKind(SyntaxKind.NullLiteralExpression); 334var isAnonymousFunctionCast = castedExpressionNode.WalkDownParentheses() is AnonymousFunctionExpressionSyntax; 814if (originalConditionalExpression.WhenTrue.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression) || 815originalConditionalExpression.WhenFalse.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression)) 941=> node is ExpressionSyntax expression && expression.WalkDownParentheses().Kind() is SyntaxKind.CastExpression or SyntaxKind.AsExpression; 978if (otherSide.WalkDownParentheses().Kind() == SyntaxKind.NullLiteralExpression) 1072var operation = semanticModel.GetOperation(expression.WalkDownParentheses(), cancellationToken); 1277rewrittenExpression.WalkDownParentheses() is ObjectCreationExpressionSyntax; 1367expression = expression.WalkDownParentheses();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (8)
193originalLambda = originalLambda.WalkDownParentheses(); 194replacedLambda = replacedLambda.WalkDownParentheses(); 303if (expression.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression)) 467if (previousReplacedExpression.WalkDownParentheses().Kind() is SyntaxKind.NullLiteralExpression or SyntaxKind.DefaultLiteralExpression) 598expression = expression.WalkDownParentheses(); 611expression = expression.WalkDownParentheses(); 696if (originalIsOrAsExpression.Left.WalkDownParentheses() is not AnonymousFunctionExpressionSyntax && 697newIsOrAsExpression.Left.WalkDownParentheses() is AnonymousFunctionExpressionSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
343return current.WalkDownParentheses();