57 references to EqualsExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (1)
636case SyntaxKind.EqualsExpression:
Binder\Binder_Operators.cs (3)
433case SyntaxKind.EqualsExpression: 595case SyntaxKind.EqualsExpression: 2242case SyntaxKind.EqualsExpression: return BinaryOperatorKind.Equal;
Binder\EarlyWellKnownAttributeBinder.cs (1)
134case SyntaxKind.EqualsExpression:
Parser\DirectiveParser.cs (1)
860case SyntaxKind.EqualsExpression:
Parser\LanguageParser.cs (1)
10721case SyntaxKind.EqualsExpression:
Syntax\SyntaxKindFacts.cs (1)
634return SyntaxKind.EqualsExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
40SyntaxKind.EqualsExpression,
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
45if (condition is BinaryExpressionSyntax(SyntaxKind.EqualsExpression) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binary)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
184if (condition is BinaryExpressionSyntax(SyntaxKind.EqualsExpression) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binaryExpression)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (2)
41context.RegisterSyntaxNodeAction(n => AnalyzeSyntax(n), SyntaxKind.EqualsExpression, SyntaxKind.NotEqualsExpression); 61var properties = binaryExpression.Kind() == SyntaxKind.EqualsExpression
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
100if (binaryExpression.Kind() is SyntaxKind.EqualsExpression)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
52SyntaxKind.EqualsExpression,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
54if (conditionalAccessExpression.Parent is BinaryExpressionSyntax(SyntaxKind.EqualsExpression) parentBinaryExpression1 &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
776case SyntaxKind.EqualsExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
112public int ReferenceEqualsExpression => (int)SyntaxKind.EqualsExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
118if (leftOrRightChild.Parent is BinaryExpressionSyntax(SyntaxKind.EqualsExpression or SyntaxKind.NotEqualsExpression) binary) 873if (parentBinary != null && parentBinary.Kind() is SyntaxKind.EqualsExpression or SyntaxKind.NotEqualsExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
75if (binary.IsKind(SyntaxKind.EqualsExpression))
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsCodeFixProvider.cs (1)
34=> BinaryExpression(SyntaxKind.EqualsExpression, argument, s_nullLiteralExpression).Parenthesize();
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
126SyntaxKind.EqualsExpression => ConstantPattern(binaryExpression.Right),
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169if (comparison.Kind() is not (SyntaxKind.EqualsExpression or SyntaxKind.IsPatternExpression))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2223var entry = SyntaxFactory.BinaryExpression(SyntaxKind.EqualsExpression, SyntaxFactory.LiteralExpression(SyntaxKind.TrueLiteralExpression), SyntaxFactory.LiteralExpression(SyntaxKind.FalseLiteralExpression));
Microsoft.CodeAnalysis.CSharp.Features (15)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
278BinaryExpressionSyntax(EqualsExpression) => ConstantPattern(constant), 337BinaryExpressionSyntax(EqualsExpression or
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
366case SyntaxKind.EqualsExpression:
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
40SyntaxKind.EqualsExpression,
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
45if (condition is BinaryExpressionSyntax(SyntaxKind.EqualsExpression) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binary)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
184if (condition is BinaryExpressionSyntax(SyntaxKind.EqualsExpression) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binaryExpression)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (2)
41context.RegisterSyntaxNodeAction(n => AnalyzeSyntax(n), SyntaxKind.EqualsExpression, SyntaxKind.NotEqualsExpression); 61var properties = binaryExpression.Kind() == SyntaxKind.EqualsExpression
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
100if (binaryExpression.Kind() is SyntaxKind.EqualsExpression)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
52SyntaxKind.EqualsExpression,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
54if (conditionalAccessExpression.Parent is BinaryExpressionSyntax(SyntaxKind.EqualsExpression) parentBinaryExpression1 &&
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
75if (binary.IsKind(SyntaxKind.EqualsExpression))
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsCodeFixProvider.cs (1)
34=> BinaryExpression(SyntaxKind.EqualsExpression, argument, s_nullLiteralExpression).Parenthesize();
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
126SyntaxKind.EqualsExpression => ConstantPattern(binaryExpression.Right),
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169if (comparison.Kind() is not (SyntaxKind.EqualsExpression or SyntaxKind.IsPatternExpression))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
IncrementalParsing\BinaryExpression.cs (2)
108MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.EqualsExpression); 253case SyntaxKind.EqualsExpression:
Parsing\CollectionExpressionParsingTests.cs (1)
18463N(SyntaxKind.EqualsExpression);
Parsing\ExpressionParsingTests.cs (1)
4796N(SyntaxKind.EqualsExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
302[InlineData(SyntaxKind.EqualsExpression, SyntaxKind.EqualsEqualsToken)]
Parsing\PatternParsingTests.cs (3)
678N(SyntaxKind.EqualsExpression); 872N(SyntaxKind.EqualsExpression); 7610N(SyntaxKind.EqualsExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3305=> CreateBinaryExpression(SyntaxKind.EqualsExpression, left, right); 3308=> CreateBinaryExpression(SyntaxKind.EqualsExpression, left, right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
776case SyntaxKind.EqualsExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
112public int ReferenceEqualsExpression => (int)SyntaxKind.EqualsExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
118if (leftOrRightChild.Parent is BinaryExpressionSyntax(SyntaxKind.EqualsExpression or SyntaxKind.NotEqualsExpression) binary) 873if (parentBinary != null && parentBinary.Kind() is SyntaxKind.EqualsExpression or SyntaxKind.NotEqualsExpression)
Microsoft.Interop.ComInterfaceGenerator (1)
ComClassGenerator.cs (1)
179BinaryExpression(SyntaxKind.EqualsExpression,
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSImportCodeGenerator.cs (1)
147statementsToUpdate.Add(IfStatement(BinaryExpression(SyntaxKind.EqualsExpression, IdentifierName(_signatureContext.BindingName), LiteralExpression(SyntaxKind.NullLiteralExpression)),
Microsoft.Interop.SourceGeneration (1)
Marshalling\BoolMarshaller.cs (1)
81(SyntaxKind binaryOp, int comparand) = _compareToTrue ? (SyntaxKind.EqualsExpression, _trueValue) : (SyntaxKind.NotEqualsExpression, _falseValue);