128 references to ExclamationToken
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Operators.cs (1)
2458
Debug.Assert(node.Operand.SkipParens().GetLastToken().Kind() == SyntaxKind.
ExclamationToken
);
Binder\Semantics\Operators\OperatorFacts.cs (1)
108
case SyntaxKind.
ExclamationToken
: return WellKnownMemberNames.LogicalNotOperatorName;
Parser\DirectiveParser.cs (3)
111
if (lexer.Options.Kind == SourceCodeKind.Script && contextualKind == SyntaxKind.
ExclamationToken
&& hashPosition == 0 && !hash.HasTrailingTrivia)
113
result = this.ParseShebangDirective(hash, this.EatToken(SyntaxKind.
ExclamationToken
), isActive);
779
if (this.CurrentToken.Kind == SyntaxKind.
ExclamationToken
)
Parser\LanguageParser.cs (4)
7905
or SyntaxKind.
ExclamationToken
11701
case SyntaxKind.
ExclamationToken
:
11843
while (this.CurrentToken.Kind == SyntaxKind.
ExclamationToken
)
11877
while (this.PeekToken(index).Kind == SyntaxKind.
ExclamationToken
)
Parser\LanguageParser_Patterns.cs (1)
259
case SyntaxKind.
ExclamationToken
:
Parser\Lexer.cs (3)
521
info.Kind = TextWindow.TryAdvance('=') ? SyntaxKind.ExclamationEqualsToken : SyntaxKind.
ExclamationToken
;
2608
info.Kind = SyntaxKind.
ExclamationToken
;
3774
else info.Kind = SyntaxKind.
ExclamationToken
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
74
AddPunctuation(type.NullableAnnotation == CodeAnalysis.NullableAnnotation.Annotated ? SyntaxKind.QuestionToken : SyntaxKind.
ExclamationToken
);
884
AddPunctuation(SyntaxKind.
ExclamationToken
);
Syntax\SyntaxKindFacts.cs (5)
423
case SyntaxKind.
ExclamationToken
:
458
case SyntaxKind.
ExclamationToken
:
523
case SyntaxKind.
ExclamationToken
:
1062
case WellKnownMemberNames.LogicalNotOperatorName: return SyntaxKind.
ExclamationToken
;
1369
case SyntaxKind.
ExclamationToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
477
if (currentToken.Kind() == SyntaxKind.
ExclamationToken
&&
524
if (previousToken.Kind() == SyntaxKind.
ExclamationToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
437
case SyntaxKind.
ExclamationToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
40
{ SyntaxKind.
ExclamationToken
, 2 },
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (96)
Generated\Syntax.Test.xml.Generated.cs (4)
740
=> InternalSyntaxFactory.ShebangDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.
ExclamationToken
), InternalSyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
3856
Assert.Equal(SyntaxKind.
ExclamationToken
, node.ExclamationToken.Kind);
10956
=> SyntaxFactory.ShebangDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.
ExclamationToken
), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
14072
Assert.Equal(SyntaxKind.
ExclamationToken
, node.ExclamationToken.Kind());
LexicalAndXml\CrefLexerTests.cs (3)
238
AssertTokens("!", Token(SyntaxKind.
ExclamationToken
));
274
AssertTokens("!", Token(SyntaxKind.
ExclamationToken
, "!", "!"));
303
AssertTokens("!!=", Token(SyntaxKind.
ExclamationToken
), Token(SyntaxKind.ExclamationEqualsToken));
LexicalAndXml\LexicalTests.cs (1)
899
TestPunctuation(SyntaxKind.
ExclamationToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (3)
245
AssertTokens("!", Token(SyntaxKind.
ExclamationToken
));
281
AssertTokens("!", Token(SyntaxKind.
ExclamationToken
, "!", "!"));
310
AssertTokens("!!=", Token(SyntaxKind.
ExclamationToken
), Token(SyntaxKind.ExclamationEqualsToken));
Parsing\CollectionExpressionParsingTests.cs (13)
6122
N(SyntaxKind.
ExclamationToken
);
10432
N(SyntaxKind.
ExclamationToken
);
10482
N(SyntaxKind.
ExclamationToken
);
10560
N(SyntaxKind.
ExclamationToken
);
10617
N(SyntaxKind.
ExclamationToken
);
10709
N(SyntaxKind.
ExclamationToken
);
10780
N(SyntaxKind.
ExclamationToken
);
10866
N(SyntaxKind.
ExclamationToken
);
10931
N(SyntaxKind.
ExclamationToken
);
11032
N(SyntaxKind.
ExclamationToken
);
11112
N(SyntaxKind.
ExclamationToken
);
11198
N(SyntaxKind.
ExclamationToken
);
11263
N(SyntaxKind.
ExclamationToken
);
Parsing\DeclarationParsingTests.cs (1)
5519
TestClassUnaryOperatorMethod(SyntaxKind.
ExclamationToken
);
Parsing\ExpressionParsingTests.cs (2)
587
TestPrefixUnary(SyntaxKind.
ExclamationToken
);
617
TestPostfixUnary(SyntaxKind.
ExclamationToken
, TestOptions.Regular8);
Parsing\FieldKeywordParsingTests.cs (1)
1224
N(SyntaxKind.
ExclamationToken
);
Parsing\LambdaAttributeParsingTests.cs (1)
1234
N(SyntaxKind.
ExclamationToken
);
Parsing\LambdaParameterParsingTests.cs (32)
819
N(SyntaxKind.
ExclamationToken
);
821
N(SyntaxKind.
ExclamationToken
);
885
N(SyntaxKind.
ExclamationToken
);
887
N(SyntaxKind.
ExclamationToken
);
955
N(SyntaxKind.
ExclamationToken
);
957
N(SyntaxKind.
ExclamationToken
);
1013
N(SyntaxKind.
ExclamationToken
);
1285
N(SyntaxKind.
ExclamationToken
);
1288
N(SyntaxKind.
ExclamationToken
);
1352
N(SyntaxKind.
ExclamationToken
);
1354
N(SyntaxKind.
ExclamationToken
);
1599
N(SyntaxKind.
ExclamationToken
);
1649
N(SyntaxKind.
ExclamationToken
);
1702
N(SyntaxKind.
ExclamationToken
);
1770
N(SyntaxKind.
ExclamationToken
);
1838
N(SyntaxKind.
ExclamationToken
);
1840
N(SyntaxKind.
ExclamationToken
);
1894
N(SyntaxKind.
ExclamationToken
);
1962
N(SyntaxKind.
ExclamationToken
);
1964
N(SyntaxKind.
ExclamationToken
);
4373
N(SyntaxKind.
ExclamationToken
);
4375
N(SyntaxKind.
ExclamationToken
);
4440
N(SyntaxKind.
ExclamationToken
);
4442
N(SyntaxKind.
ExclamationToken
);
4519
N(SyntaxKind.
ExclamationToken
);
4521
N(SyntaxKind.
ExclamationToken
);
4798
N(SyntaxKind.
ExclamationToken
);
4800
N(SyntaxKind.
ExclamationToken
);
4857
N(SyntaxKind.
ExclamationToken
);
4859
N(SyntaxKind.
ExclamationToken
);
4928
N(SyntaxKind.
ExclamationToken
);
4930
N(SyntaxKind.
ExclamationToken
);
Parsing\MemberDeclarationParsingTests.cs (4)
9661
[InlineData("!", SyntaxKind.
ExclamationToken
)]
9709
[InlineData("!", SyntaxKind.
ExclamationToken
)]
9997
[InlineData("!", SyntaxKind.
ExclamationToken
)]
12489
N(SyntaxKind.
ExclamationToken
);
Parsing\PatternParsingTests2.cs (1)
678
N(SyntaxKind.
ExclamationToken
);
Parsing\ScriptParsingTests.cs (1)
9736
Assert.Equal(SyntaxKind.
ExclamationToken
, shebang.ExclamationToken.Kind());
Parsing\StatementParsingTests.cs (1)
178
TestPostfixUnaryOperator(SyntaxKind.
ExclamationToken
, TestOptions.Regular8);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (27)
60
N(SyntaxKind.
ExclamationToken
);
93
N(SyntaxKind.
ExclamationToken
);
115
N(SyntaxKind.
ExclamationToken
);
117
N(SyntaxKind.
ExclamationToken
);
133
N(SyntaxKind.
ExclamationToken
);
140
N(SyntaxKind.
ExclamationToken
);
167
N(SyntaxKind.
ExclamationToken
);
237
N(SyntaxKind.
ExclamationToken
);
287
N(SyntaxKind.
ExclamationToken
);
335
N(SyntaxKind.
ExclamationToken
);
402
N(SyntaxKind.
ExclamationToken
);
473
N(SyntaxKind.
ExclamationToken
);
547
N(SyntaxKind.
ExclamationToken
);
616
N(SyntaxKind.
ExclamationToken
);
622
N(SyntaxKind.
ExclamationToken
);
682
N(SyntaxKind.
ExclamationToken
);
742
N(SyntaxKind.
ExclamationToken
);
783
N(SyntaxKind.
ExclamationToken
);
844
N(SyntaxKind.
ExclamationToken
);
882
N(SyntaxKind.
ExclamationToken
);
884
N(SyntaxKind.
ExclamationToken
);
925
N(SyntaxKind.
ExclamationToken
);
927
N(SyntaxKind.
ExclamationToken
);
929
N(SyntaxKind.
ExclamationToken
);
931
N(SyntaxKind.
ExclamationToken
);
975
N(SyntaxKind.
ExclamationToken
);
977
N(SyntaxKind.
ExclamationToken
);
Parsing\TopLevelStatementsParsingTests.cs (1)
936
N(SyntaxKind.
ExclamationToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (1)
395
case SyntaxKind.
ExclamationToken
:
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
74
if ((nextToken.Kind() is SyntaxKind.TildeToken or SyntaxKind.
ExclamationToken
or SyntaxKind.OpenParenToken) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
477
if (currentToken.Kind() == SyntaxKind.
ExclamationToken
&&
524
if (previousToken.Kind() == SyntaxKind.
ExclamationToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
437
case SyntaxKind.
ExclamationToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
40
{ SyntaxKind.
ExclamationToken
, 2 },
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1285
PostfixUnaryExpressionSyntax { OperatorToken: { RawKind: (int)CSharp.SyntaxKind.
ExclamationToken
} })
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
218
if (token.IsKind(SyntaxKind.
ExclamationToken
) &&