32 references to WalkDownParentheses
Microsoft.CodeAnalysis.CSharp.CodeStyle (32)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
299var initializer = declarator.Initializer.Value.WalkDownParentheses();
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
332var value = variableDeclarator.Initializer.Value.WalkDownParentheses(); 335if (castExpression.Expression.WalkDownParentheses() == anonymousFunction)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
82var operand = GetNullCheckOperand(comparisonLeft, comparison.Kind(), comparisonRight)?.WalkDownParentheses();
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (4)
197var declaratorValue = declarator.Initializer.Value.WalkDownParentheses(); 201if (!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)
81var localDeclarationExprA = variableDeclarator.Initializer?.Value.WalkDownParentheses(); 142left = assignment.Left.WalkDownParentheses(); 143right = assignment.Right.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();