56 references to ExclamationEqualsToken
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)
89case SyntaxKind.ExclamationEqualsToken: return WellKnownMemberNames.InequalityOperatorName;
Parser\DirectiveParser.cs (1)
775while (this.CurrentToken.Kind == SyntaxKind.EqualsEqualsToken || this.CurrentToken.Kind == SyntaxKind.ExclamationEqualsToken)
Parser\LanguageParser.cs (2)
5921case SyntaxKind.ExclamationEqualsToken: 12623case SyntaxKind.ExclamationEqualsToken:
Parser\LanguageParser_Patterns.cs (1)
207case SyntaxKind.ExclamationEqualsToken:
Parser\Lexer.cs (3)
521info.Kind = TextWindow.TryAdvance('=') ? SyntaxKind.ExclamationEqualsToken : SyntaxKind.ExclamationToken; 2571info.Kind = SyntaxKind.ExclamationEqualsToken; 3740if (AdvanceIfMatches('=')) info.Kind = SyntaxKind.ExclamationEqualsToken;
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)
509case SyntaxKind.ExclamationEqualsToken: 635case SyntaxKind.ExclamationEqualsToken: 1056case WellKnownMemberNames.InequalityOperatorName: return SyntaxKind.ExclamationEqualsToken; 1457case SyntaxKind.ExclamationEqualsToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
409case SyntaxKind.ExclamationEqualsToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
203=> member is OperatorDeclarationSyntax { OperatorToken.RawKind: (int)SyntaxKind.ExclamationEqualsToken });
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
53{ SyntaxKind.ExclamationEqualsToken, 15 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2234or SyntaxKind.ExclamationEqualsToken
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
203=> member is OperatorDeclarationSyntax { OperatorToken.RawKind: (int)SyntaxKind.ExclamationEqualsToken });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (31)
LexicalAndXml\CrefLexerTests.cs (6)
239AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken)); 275AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken, "!=", "!=")); 276AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken, "!=", "!=")); 277AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken, "!=", "!=")); 303AssertTokens("!!=", Token(SyntaxKind.ExclamationToken), Token(SyntaxKind.ExclamationEqualsToken)); 308AssertTokens("!==", Token(SyntaxKind.ExclamationEqualsToken), Token(SyntaxKind.EqualsToken));
LexicalAndXml\LexicalTests.cs (1)
938TestPunctuation(SyntaxKind.ExclamationEqualsToken);
LexicalAndXml\NameAttributeValueLexerTests.cs (6)
246AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken)); 282AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken, "!=", "!=")); 283AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken, "!=", "!=")); 284AssertTokens("!=", Token(SyntaxKind.ExclamationEqualsToken, "!=", "!=")); 310AssertTokens("!!=", Token(SyntaxKind.ExclamationToken), Token(SyntaxKind.ExclamationEqualsToken)); 315AssertTokens("!==", Token(SyntaxKind.ExclamationEqualsToken), Token(SyntaxKind.EqualsToken));
Parsing\DeclarationParsingTests.cs (1)
5346TestClassBinaryOperatorMethod(SyntaxKind.ExclamationEqualsToken);
Parsing\ExpressionParsingTests.cs (1)
648TestBinary(SyntaxKind.ExclamationEqualsToken);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
303[InlineData(SyntaxKind.NotEqualsExpression, SyntaxKind.ExclamationEqualsToken)]
Parsing\LambdaParameterParsingTests.cs (7)
1015N(SyntaxKind.ExclamationEqualsToken); 1408N(SyntaxKind.ExclamationEqualsToken); 1472N(SyntaxKind.ExclamationEqualsToken); 1536N(SyntaxKind.ExclamationEqualsToken); 1704N(SyntaxKind.ExclamationEqualsToken); 1772N(SyntaxKind.ExclamationEqualsToken); 1896N(SyntaxKind.ExclamationEqualsToken);
Parsing\MemberDeclarationParsingTests.cs (3)
9775[InlineData("!=", SyntaxKind.ExclamationEqualsToken)] 9841[InlineData("!=", SyntaxKind.ExclamationEqualsToken)] 10057[InlineData("!=", SyntaxKind.ExclamationEqualsToken)]
Parsing\PatternParsingTests.cs (3)
8793N(SyntaxKind.ExclamationEqualsToken); 8964N(SyntaxKind.ExclamationEqualsToken); 9091N(SyntaxKind.ExclamationEqualsToken);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (2)
169N(SyntaxKind.ExclamationEqualsToken); 207N(SyntaxKind.ExclamationEqualsToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\ClassificationHelpers.cs (1)
420case SyntaxKind.ExclamationEqualsToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
409case SyntaxKind.ExclamationEqualsToken:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
53{ SyntaxKind.ExclamationEqualsToken, 15 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2234or SyntaxKind.ExclamationEqualsToken