58 references to EqualsExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (1)
636
case SyntaxKind.
EqualsExpression
:
Binder\Binder_Operators.cs (3)
433
case SyntaxKind.
EqualsExpression
:
595
case SyntaxKind.
EqualsExpression
:
2247
case SyntaxKind.
EqualsExpression
: return BinaryOperatorKind.Equal;
Binder\EarlyWellKnownAttributeBinder.cs (1)
134
case SyntaxKind.
EqualsExpression
:
Parser\DirectiveParser.cs (1)
852
case SyntaxKind.
EqualsExpression
:
Parser\LanguageParser.cs (1)
10815
case SyntaxKind.
EqualsExpression
:
Syntax\SyntaxKindFacts.cs (1)
634
return SyntaxKind.
EqualsExpression
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
40
SyntaxKind.
EqualsExpression
,
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
43
if (condition is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binary)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
180
if (condition is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binaryExpression)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (2)
41
context.RegisterSyntaxNodeAction(n => AnalyzeSyntax(n), SyntaxKind.
EqualsExpression
, SyntaxKind.NotEqualsExpression);
61
var properties = binaryExpression.Kind() == SyntaxKind.
EqualsExpression
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
100
if (binaryExpression.Kind() is SyntaxKind.
EqualsExpression
)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
49
SyntaxKind.
EqualsExpression
,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
54
if (conditionalAccessExpression.Parent is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
) parentBinaryExpression1 &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
777
case SyntaxKind.
EqualsExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
116
public int ReferenceEqualsExpression => (int)SyntaxKind.
EqualsExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
125
if (leftOrRightChild.Parent is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
or SyntaxKind.NotEqualsExpression) binary)
949
is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
or SyntaxKind.NotEqualsExpression) parentBinary)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
75
if (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)
140
SyntaxKind.
EqualsExpression
=> ConstantPattern(binaryExpression.Right),
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169
if (comparison.Kind() is not (SyntaxKind.
EqualsExpression
or SyntaxKind.IsPatternExpression))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2222
var entry = SyntaxFactory.BinaryExpression(SyntaxKind.
EqualsExpression
, SyntaxFactory.LiteralExpression(SyntaxKind.TrueLiteralExpression), SyntaxFactory.LiteralExpression(SyntaxKind.FalseLiteralExpression));
Microsoft.CodeAnalysis.CSharp.Features (16)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
278
BinaryExpressionSyntax(
EqualsExpression
) => ConstantPattern(constant),
337
BinaryExpressionSyntax(
EqualsExpression
or
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
366
case SyntaxKind.
EqualsExpression
:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
265
BinaryExpression(SyntaxKind.
EqualsExpression
, IdentifierName(FlowControlName), LiteralExpression(value)),
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
40
SyntaxKind.
EqualsExpression
,
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
43
if (condition is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binary)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
180
if (condition is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
) { Right: LiteralExpressionSyntax(SyntaxKind.NullLiteralExpression) } binaryExpression)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (2)
41
context.RegisterSyntaxNodeAction(n => AnalyzeSyntax(n), SyntaxKind.
EqualsExpression
, SyntaxKind.NotEqualsExpression);
61
var properties = binaryExpression.Kind() == SyntaxKind.
EqualsExpression
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
100
if (binaryExpression.Kind() is SyntaxKind.
EqualsExpression
)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
49
SyntaxKind.
EqualsExpression
,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
54
if (conditionalAccessExpression.Parent is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
) parentBinaryExpression1 &&
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
75
if (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)
140
SyntaxKind.
EqualsExpression
=> ConstantPattern(binaryExpression.Right),
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169
if (comparison.Kind() is not (SyntaxKind.
EqualsExpression
or SyntaxKind.IsPatternExpression))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
IncrementalParsing\BinaryExpression.cs (2)
108
MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.
EqualsExpression
);
253
case SyntaxKind.
EqualsExpression
:
Parsing\CollectionExpressionParsingTests.cs (1)
18463
N(SyntaxKind.
EqualsExpression
);
Parsing\ExpressionParsingTests.cs (1)
4796
N(SyntaxKind.
EqualsExpression
);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
302
[InlineData(SyntaxKind.
EqualsExpression
, SyntaxKind.EqualsEqualsToken)]
Parsing\PatternParsingTests.cs (3)
678
N(SyntaxKind.
EqualsExpression
);
872
N(SyntaxKind.
EqualsExpression
);
7610
N(SyntaxKind.
EqualsExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3210
=> CreateBinaryExpression(SyntaxKind.
EqualsExpression
, left, right);
3213
=> CreateBinaryExpression(SyntaxKind.
EqualsExpression
, left, right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
777
case SyntaxKind.
EqualsExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
116
public int ReferenceEqualsExpression => (int)SyntaxKind.
EqualsExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
125
if (leftOrRightChild.Parent is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
or SyntaxKind.NotEqualsExpression) binary)
949
is BinaryExpressionSyntax(SyntaxKind.
EqualsExpression
or SyntaxKind.NotEqualsExpression) parentBinary)
Microsoft.Interop.ComInterfaceGenerator (1)
ComClassGenerator.cs (1)
179
BinaryExpression(SyntaxKind.
EqualsExpression
,
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSImportCodeGenerator.cs (1)
147
statementsToUpdate.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);