64 references to EqualsEqualsToken
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Operators.cs (1)
833bool isEquality = operatorToken.Kind() == SyntaxKind.EqualsEqualsToken || operatorToken.Kind() == SyntaxKind.ExclamationEqualsToken;
Binder\Semantics\Operators\OperatorFacts.cs (1)
81case SyntaxKind.EqualsEqualsToken: return WellKnownMemberNames.EqualityOperatorName;
Parser\DirectiveParser.cs (1)
767while (this.CurrentToken.Kind == SyntaxKind.EqualsEqualsToken || this.CurrentToken.Kind == SyntaxKind.ExclamationEqualsToken)
Parser\LanguageParser.cs (2)
5963case SyntaxKind.EqualsEqualsToken: 12687case SyntaxKind.EqualsEqualsToken:
Parser\LanguageParser_Patterns.cs (1)
206case SyntaxKind.EqualsEqualsToken:
Parser\Lexer.cs (3)
527TextWindow.TryAdvance('=') ? SyntaxKind.EqualsEqualsToken : 2618info.Kind = SyntaxKind.EqualsEqualsToken; 3769if (AdvanceIfMatches('=')) info.Kind = SyntaxKind.EqualsEqualsToken;
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (3)
57!(syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))) 142if (syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken)) 191else if ((result & DeclarationModifiers.Static) != 0 && syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))
Syntax\SyntaxKindFacts.cs (4)
501case SyntaxKind.EqualsEqualsToken: 633case SyntaxKind.EqualsEqualsToken: 1039case WellKnownMemberNames.EqualityOperatorName: return SyntaxKind.EqualsEqualsToken; 1459case SyntaxKind.EqualsEqualsToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
403case SyntaxKind.EqualsEqualsToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
201=> member is OperatorDeclarationSyntax { OperatorToken.RawKind: (int)SyntaxKind.EqualsEqualsToken });
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
52{ SyntaxKind.EqualsEqualsToken, 14 },
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
201=> member is OperatorDeclarationSyntax { OperatorToken.RawKind: (int)SyntaxKind.EqualsEqualsToken });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (41)
Generated\Syntax.Test.xml.Generated.cs (4)
305=> InternalSyntaxFactory.RelationalPattern(InternalSyntaxFactory.Token(SyntaxKind.EqualsEqualsToken), GenerateIdentifierName()); 1897Assert.Equal(SyntaxKind.EqualsEqualsToken, node.OperatorToken.Kind); 10521=> SyntaxFactory.RelationalPattern(SyntaxFactory.Token(SyntaxKind.EqualsEqualsToken), GenerateIdentifierName()); 12113Assert.Equal(SyntaxKind.EqualsEqualsToken, node.OperatorToken.Kind());
LexicalAndXml\CrefLexerTests.cs (9)
237AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken)); 271AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken, "==", "==")); 272AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken, "==", "==")); 273AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken, "==", "==")); 291AssertTokens("===", Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsToken)); 292AssertTokens("====", Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsEqualsToken)); 293AssertTokens("=====", Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsToken));
LexicalAndXml\LexicalTests.cs (5)
939TestPunctuation(SyntaxKind.EqualsEqualsToken); 3938Assert.Equal(SyntaxKind.EqualsEqualsToken, token.Kind()); 3944Assert.Equal(SyntaxKind.EqualsEqualsToken, token.Kind()); 4077Assert.Equal(SyntaxKind.EqualsEqualsToken, token.Kind()); 4083Assert.Equal(SyntaxKind.EqualsEqualsToken, token.Kind());
LexicalAndXml\NameAttributeValueLexerTests.cs (9)
244AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken)); 278AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken, "==", "==")); 279AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken, "==", "==")); 280AssertTokens("==", Token(SyntaxKind.EqualsEqualsToken, "==", "==")); 298AssertTokens("===", Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsToken)); 299AssertTokens("====", Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsEqualsToken)); 300AssertTokens("=====", Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsEqualsToken), Token(SyntaxKind.EqualsToken));
Parsing\CollectionExpressionParsingTests.cs (1)
18470N(SyntaxKind.EqualsEqualsToken);
Parsing\DeclarationParsingTests.cs (1)
5345TestClassBinaryOperatorMethod(SyntaxKind.EqualsEqualsToken);
Parsing\ExpressionParsingTests.cs (2)
647TestBinary(SyntaxKind.EqualsEqualsToken); 4802N(SyntaxKind.EqualsEqualsToken);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
302[InlineData(SyntaxKind.EqualsExpression, SyntaxKind.EqualsEqualsToken)]
Parsing\MemberDeclarationParsingTests.cs (3)
9774[InlineData("==", SyntaxKind.EqualsEqualsToken)] 9840[InlineData("==", SyntaxKind.EqualsEqualsToken)] 10056[InlineData("==", SyntaxKind.EqualsEqualsToken)]
Parsing\PatternParsingTests.cs (6)
695N(SyntaxKind.EqualsEqualsToken); 878N(SyntaxKind.EqualsEqualsToken); 7616N(SyntaxKind.EqualsEqualsToken); 8776N(SyntaxKind.EqualsEqualsToken); 8923N(SyntaxKind.EqualsEqualsToken); 9066N(SyntaxKind.EqualsEqualsToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
418case SyntaxKind.EqualsEqualsToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
403case SyntaxKind.EqualsEqualsToken:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
52{ SyntaxKind.EqualsEqualsToken, 14 },