55 references to TildeToken
Microsoft.CodeAnalysis.CSharp (20)
Binder\Semantics\Operators\OperatorFacts.cs (1)
107
case SyntaxKind.
TildeToken
: return WellKnownMemberNames.OnesComplementOperatorName;
CSharpExtensions.cs (1)
180
const int FirstCSharpKind = (int)SyntaxKind.
TildeToken
;
Parser\LanguageParser.cs (4)
2360
case SyntaxKind.
TildeToken
:
3075
if (this.CurrentToken.Kind == SyntaxKind.
TildeToken
)
3360
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
TildeToken
);
3361
var tilde = this.EatToken(SyntaxKind.
TildeToken
);
Parser\Lexer.cs (2)
516
info.Kind = SyntaxKind.
TildeToken
;
3752
info.Kind = SyntaxKind.
TildeToken
;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
493
AddPunctuation(SyntaxKind.
TildeToken
);
Syntax\DestructorDeclarationSyntax.cs (2)
46
SyntaxFactory.Token(SyntaxKind.
TildeToken
),
80
SyntaxFactory.Token(SyntaxKind.
TildeToken
),
Syntax\InternalSyntax\SyntaxToken.cs (1)
140
internal const SyntaxKind FirstTokenWithWellKnownText = SyntaxKind.
TildeToken
;
Syntax\SyntaxKindFacts.cs (8)
158
return kind >= SyntaxKind.
TildeToken
&& kind <= SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken;
179
for (int i = (int)SyntaxKind.
TildeToken
; i <= (int)SyntaxKind.DotDotToken; i++)
203
return kind >= SyntaxKind.
TildeToken
&& kind <= SyntaxKind.EndOfFileToken;
230
if (kind >= SyntaxKind.
TildeToken
&& kind < SyntaxKind.EndOfLineTrivia) return true;
421
case SyntaxKind.
TildeToken
:
522
case SyntaxKind.
TildeToken
:
1069
case WellKnownMemberNames.OnesComplementOperatorName: return SyntaxKind.
TildeToken
;
1367
case SyntaxKind.
TildeToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
90
public static readonly SyntaxToken TildeToken = Token(SyntaxKind.
TildeToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
531
if (previousToken.Kind() == SyntaxKind.
TildeToken
&& (previousToken.Parent is PrefixUnaryExpressionSyntax || previousToken.Parent is DestructorDeclarationSyntax))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
438
case SyntaxKind.
TildeToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
41
{ SyntaxKind.
TildeToken
, 3 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
229
var isDestructorTypeContext = targetToken.IsKind(SyntaxKind.
TildeToken
) &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
Generated\Syntax.Test.xml.Generated.cs (4)
578
=> InternalSyntaxFactory.DestructorDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
TildeToken
), InternalSyntaxFactory.Identifier("Identifier"), GenerateParameterList(), null, null, null);
3138
Assert.Equal(SyntaxKind.
TildeToken
, node.TildeToken.Kind);
10794
=> SyntaxFactory.DestructorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
TildeToken
), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
13354
Assert.Equal(SyntaxKind.
TildeToken
, node.TildeToken.Kind());
LexicalAndXml\CrefLexerTests.cs (2)
217
AssertTokens("~", Token(SyntaxKind.
TildeToken
));
243
AssertTokens("~", Token(SyntaxKind.
TildeToken
, "~", "~"));
LexicalAndXml\LexicalTests.cs (1)
898
TestPunctuation(SyntaxKind.
TildeToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (2)
224
AssertTokens("~", Token(SyntaxKind.
TildeToken
));
250
AssertTokens("~", Token(SyntaxKind.
TildeToken
, "~", "~"));
Parsing\DeclarationParsingTests.cs (2)
5518
TestClassUnaryOperatorMethod(SyntaxKind.
TildeToken
);
6476
N(SyntaxKind.
TildeToken
);
Parsing\ExpressionParsingTests.cs (1)
586
TestPrefixUnary(SyntaxKind.
TildeToken
);
Parsing\MemberDeclarationParsingTests.cs (5)
305
N(SyntaxKind.
TildeToken
);
9662
[InlineData("~", SyntaxKind.
TildeToken
)]
9710
[InlineData("~", SyntaxKind.
TildeToken
)]
9998
[InlineData("~", SyntaxKind.
TildeToken
)]
11660
N(SyntaxKind.
TildeToken
);
Parsing\PatternParsingTests.cs (1)
6675
N(SyntaxKind.
TildeToken
);
Syntax\SyntaxNodeTests.cs (4)
350
for (var kind = SyntaxKind.
TildeToken
; kind < SyntaxKind.XmlElement; kind++)
354
for (var kind = SyntaxKind.
TildeToken
; kind < SyntaxKind.XmlElement; kind++)
358
for (var kind = SyntaxKind.
TildeToken
; kind < SyntaxKind.XmlElement; kind++)
475
for (var kind = SyntaxKind.
TildeToken
; kind < SyntaxKind.XmlElement; kind++)
Syntax\SyntaxTests.cs (1)
300
[InlineData(nameof(SyntaxFacts.GetPunctuationKinds), SyntaxKind.
TildeToken
, SyntaxKind.BoolKeyword)]
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\ClassificationHelpers.cs (1)
394
case SyntaxKind.
TildeToken
:
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
74
if ((nextToken.Kind() is SyntaxKind.
TildeToken
or SyntaxKind.ExclamationToken or SyntaxKind.OpenParenToken) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
90
public static readonly SyntaxToken TildeToken = Token(SyntaxKind.
TildeToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
531
if (previousToken.Kind() == SyntaxKind.
TildeToken
&& (previousToken.Parent is PrefixUnaryExpressionSyntax || previousToken.Parent is DestructorDeclarationSyntax))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
438
case SyntaxKind.
TildeToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
41
{ SyntaxKind.
TildeToken
, 3 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
229
var isDestructorTypeContext = targetToken.IsKind(SyntaxKind.
TildeToken
) &&