54 references to ExclamationEqualsToken
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Operators.cs (1)
802bool 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)
772while (this.CurrentToken.Kind == SyntaxKind.EqualsEqualsToken || this.CurrentToken.Kind == SyntaxKind.ExclamationEqualsToken)
Parser\LanguageParser.cs (6)
4350if (this.CurrentToken.Kind is SyntaxKind.ExclamationEqualsToken) 4372else if (this.CurrentToken.Kind is SyntaxKind.ExclamationEqualsToken) 5637case SyntaxKind.ExclamationEqualsToken: 11671or (SyntaxKind.ExclamationEqualsToken, SyntaxKind.GreaterThanToken, _) 11674or (SyntaxKind.ExclamationToken, SyntaxKind.ExclamationEqualsToken, SyntaxKind.GreaterThanToken)) 11810case SyntaxKind.ExclamationEqualsToken:
Parser\LanguageParser_Patterns.cs (1)
204case SyntaxKind.ExclamationEqualsToken:
Parser\Lexer.cs (3)
524info.Kind = SyntaxKind.ExclamationEqualsToken; 2934info.Kind = SyntaxKind.ExclamationEqualsToken; 4115if (AdvanceIfMatches('=')) info.Kind = SyntaxKind.ExclamationEqualsToken;
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (3)
54!(syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))) 139if (syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken)) 188else if ((result & DeclarationModifiers.Static) != 0 && syntax is OperatorDeclarationSyntax { OperatorToken: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))
Syntax\SyntaxKindFacts.cs (4)
481case SyntaxKind.ExclamationEqualsToken: 607case SyntaxKind.ExclamationEqualsToken: 1028case WellKnownMemberNames.InequalityOperatorName: return SyntaxKind.ExclamationEqualsToken; 1421case SyntaxKind.ExclamationEqualsToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpSyntaxFacts.cs (1)
413case SyntaxKind.ExclamationEqualsToken:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConvertToRecordEngine.cs (1)
226=> member is OperatorDeclarationSyntax { OperatorToken.RawKind: (int)SyntaxKind.ExclamationEqualsToken });
CSharpDeclarationComparer.cs (1)
53{ SyntaxKind.ExclamationEqualsToken, 15 },
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2224token.IsKind(SyntaxKind.ExclamationEqualsToken) ||
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToRecordEngine.cs (1)
226=> member is OperatorDeclarationSyntax { OperatorToken.RawKind: (int)SyntaxKind.ExclamationEqualsToken });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (24)
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)
611TestPunctuation(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\MemberDeclarationParsingTests.cs (3)
9786[InlineData("!=", SyntaxKind.ExclamationEqualsToken)] 9852[InlineData("!=", SyntaxKind.ExclamationEqualsToken)] 10068[InlineData("!=", SyntaxKind.ExclamationEqualsToken)]
Parsing\PatternParsingTests.cs (3)
8832N(SyntaxKind.ExclamationEqualsToken); 9003N(SyntaxKind.ExclamationEqualsToken); 9130N(SyntaxKind.ExclamationEqualsToken);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (2)
169N(SyntaxKind.ExclamationEqualsToken); 207N(SyntaxKind.ExclamationEqualsToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
419case SyntaxKind.ExclamationEqualsToken:
CodeGeneration\CSharpSyntaxGenerator.cs (1)
307OperatorKind.Inequality => SyntaxKind.ExclamationEqualsToken,
CSharpDeclarationComparer.cs (1)
53{ SyntaxKind.ExclamationEqualsToken, 15 },
CSharpSyntaxFacts.cs (1)
413case SyntaxKind.ExclamationEqualsToken:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2224token.IsKind(SyntaxKind.ExclamationEqualsToken) ||