6 references to GetOperatorPrecedence
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
56
=> (int)binaryLike.
GetOperatorPrecedence
();
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryExpressionParenthesesDiagnosticAnalyzer.cs (2)
50
var innerPrecedence = inner.
GetOperatorPrecedence
();
104
parentExpression.
GetOperatorPrecedence
() != innerPrecedence;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
371
var precedence = expression.
GetOperatorPrecedence
();
372
var parentPrecedence = parentExpression.
GetOperatorPrecedence
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\Precedence\CSharpExpressionPrecedenceService.cs (1)
21
=> expression.
GetOperatorPrecedence
();