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