31 references to WalkDownParentheses
Microsoft.CodeAnalysis.CSharp.CodeStyle (31)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
279
initializer = initializer.
WalkDownParentheses
();
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
332
var value = variableDeclarator.Initializer.Value.
WalkDownParentheses
();
335
if (castExpression.Expression.
WalkDownParentheses
() == anonymousFunction)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (4)
197
var declaratorValue = declarator.Initializer.Value.
WalkDownParentheses
();
201
if (!SyntaxFactory.AreEquivalent(isExpression.Left.
WalkDownParentheses
(), castExpression.Expression.
WalkDownParentheses
(), topLevel: false) ||
202
!SyntaxFactory.AreEquivalent(isExpression.Right.
WalkDownParentheses
(), castExpression.Type, topLevel: false))
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (3)
81
var localDeclarationExprA = variableDeclarator.Initializer?.Value.
WalkDownParentheses
();
142
left = assignment.Left.
WalkDownParentheses
();
143
right = assignment.Right.
WalkDownParentheses
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
362
current = current.
WalkDownParentheses
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (11)
186
var isDefaultLiteralCast = castedExpressionNode.
WalkDownParentheses
().IsKind(SyntaxKind.DefaultLiteralExpression);
262
var rewrittenOperation = rewrittenSemanticModel.GetOperation(rewrittenExpression.
WalkDownParentheses
(), cancellationToken);
333
var isNullLiteralCast = castedExpressionNode.
WalkDownParentheses
().IsKind(SyntaxKind.NullLiteralExpression);
341
var isAnonymousFunctionCast = castedExpressionNode.
WalkDownParentheses
() is AnonymousFunctionExpressionSyntax;
852
if (originalConditionalExpression.WhenTrue.
WalkDownParentheses
().IsKind(SyntaxKind.DefaultLiteralExpression) ||
853
originalConditionalExpression.WhenFalse.
WalkDownParentheses
().IsKind(SyntaxKind.DefaultLiteralExpression))
979
=> node is ExpressionSyntax expression && expression.
WalkDownParentheses
().Kind() is SyntaxKind.CastExpression or SyntaxKind.AsExpression;
1016
if (otherSide.
WalkDownParentheses
().Kind() == SyntaxKind.NullLiteralExpression)
1110
var operation = semanticModel.GetOperation(expression.
WalkDownParentheses
(), cancellationToken);
1315
rewrittenExpression.
WalkDownParentheses
() is ObjectCreationExpressionSyntax;
1405
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)
336
return current.
WalkDownParentheses
();