32 references to WalkDownParentheses
Microsoft.CodeAnalysis.CSharp.CodeStyle (32)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
299
var initializer = declarator.Initializer.Value.
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\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
82
var operand = GetNullCheckOperand(comparisonLeft, comparison.Kind(), comparisonRight)?.
WalkDownParentheses
();
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)
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;
814
if (originalConditionalExpression.WhenTrue.
WalkDownParentheses
().IsKind(SyntaxKind.DefaultLiteralExpression) ||
815
originalConditionalExpression.WhenFalse.
WalkDownParentheses
().IsKind(SyntaxKind.DefaultLiteralExpression))
941
=> node is ExpressionSyntax expression && expression.
WalkDownParentheses
().Kind() is SyntaxKind.CastExpression or SyntaxKind.AsExpression;
978
if (otherSide.
WalkDownParentheses
().Kind() == SyntaxKind.NullLiteralExpression)
1072
var operation = semanticModel.GetOperation(expression.
WalkDownParentheses
(), cancellationToken);
1277
rewrittenExpression.
WalkDownParentheses
() is ObjectCreationExpressionSyntax;
1367
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
();