26 references to WalkDownParentheses
Microsoft.CodeAnalysis.CSharp.Workspaces (26)
Recommendations\CSharpRecommendationServiceRunner.cs (5)
591var expression = originalExpression.WalkDownParentheses(); 629? awaitExpression.Expression.WalkDownParentheses() 630: originalExpression.WalkDownParentheses(); 641var expression = originalExpression.WalkDownParentheses(); 656var 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; 832if (originalConditionalExpression.WhenTrue.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression) || 833originalConditionalExpression.WhenFalse.WalkDownParentheses().IsKind(SyntaxKind.DefaultLiteralExpression)) 959=> node is ExpressionSyntax expression && expression.WalkDownParentheses().Kind() is SyntaxKind.CastExpression or SyntaxKind.AsExpression; 996if (otherSide.WalkDownParentheses().Kind() == SyntaxKind.NullLiteralExpression) 1090var operation = semanticModel.GetOperation(expression.WalkDownParentheses(), cancellationToken); 1295rewrittenExpression.WalkDownParentheses() is ObjectCreationExpressionSyntax; 1385expression = 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();