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