131 references to ColonColonToken
Microsoft.CodeAnalysis.CSharp (30)
Parser\DocumentationCommentParser.cs (1)
1381
else if (CurrentToken.Kind == SyntaxKind.IdentifierToken && PeekToken(1).Kind == SyntaxKind.
ColonColonToken
)
Parser\LanguageParser.cs (21)
3237
case SyntaxKind.
ColonColonToken
: // Goo:: explicit
3438
=> this.CurrentToken.Kind is SyntaxKind.DotToken or SyntaxKind.
ColonColonToken
;
3728
if (separator?.Kind == SyntaxKind.
ColonColonToken
)
5597
return this.CurrentToken.Kind is SyntaxKind.DotToken or SyntaxKind.
ColonColonToken
;
6438
if (separator != null && separator.Kind == SyntaxKind.
ColonColonToken
)
6534
separator = this.CurrentToken.Kind == SyntaxKind.
ColonColonToken
6547
if (this.CurrentToken.Kind == SyntaxKind.
ColonColonToken
)
6612
if (separator != null && separator.Kind == SyntaxKind.
ColonColonToken
)
6652
return this.CurrentToken.Kind == SyntaxKind.
ColonColonToken
6681
Debug.Assert(separator.Kind is SyntaxKind.DotToken or SyntaxKind.
ColonColonToken
);
6689
case SyntaxKind.
ColonColonToken
:
6837
if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken or SyntaxKind.
ColonColonToken
)
6840
if (this.CurrentToken.Kind is SyntaxKind.
ColonColonToken
)
6857
isAlias = this.PeekToken(1).Kind == SyntaxKind.
ColonColonToken
;
7614
if (IsTrueIdentifier() || this.CurrentToken.Kind == SyntaxKind.
ColonColonToken
)
8575
case SyntaxKind.
ColonColonToken
:
9452
case SyntaxKind.
ColonColonToken
:
10584
case SyntaxKind.
ColonColonToken
: // bad aliased name
11416
case SyntaxKind.
ColonColonToken
:
11452
else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).Kind != SyntaxKind.
ColonColonToken
)
11580
case SyntaxKind.
ColonColonToken
:
Parser\Lexer.cs (2)
506
info.Kind = TextWindow.TryAdvance(':') ? SyntaxKind.
ColonColonToken
: SyntaxKind.ColonToken;
3732
if (AdvanceIfMatches(':')) info.Kind = SyntaxKind.
ColonColonToken
;
SymbolDisplay\SymbolDisplayVisitor.cs (1)
190
AddPunctuation(containingNamespace.IsGlobalNamespace ? SyntaxKind.
ColonColonToken
: SyntaxKind.DotToken);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
284
AddPunctuation(namespaceSymbol.IsGlobalNamespace ? SyntaxKind.
ColonColonToken
: SyntaxKind.DotToken);
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (2)
101
AddPunctuation(SyntaxKind.
ColonColonToken
);
155
AddPunctuation(SyntaxKind.
ColonColonToken
);
Syntax\SyntaxKindFacts.cs (1)
1451
case SyntaxKind.
ColonColonToken
:
Syntax\SyntaxNormalizer.cs (1)
899
!next.IsKind(SyntaxKind.
ColonColonToken
) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
356
if (nodeOrToken.Kind() is SyntaxKind.ColonToken or SyntaxKind.
ColonColonToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
306
case SyntaxKind.
ColonColonToken
: // for global::
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
89
k => k is SyntaxKind.DotToken or SyntaxKind.MinusGreaterThanToken or SyntaxKind.
ColonColonToken
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
540
if (previousToken.Kind() == SyntaxKind.
ColonColonToken
|| currentToken.Kind() == SyntaxKind.
ColonColonToken
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
630
if (token.IsKind(SyntaxKind.
ColonColonToken
) &&
1488
or SyntaxKind.
ColonColonToken
2198
or SyntaxKind.
ColonColonToken
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
131
case SyntaxKind.
ColonColonToken
: // for global::
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
2702
SyntaxKind.
ColonColonToken
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (80)
Generated\Syntax.Test.xml.Generated.cs (4)
26
=> InternalSyntaxFactory.AliasQualifiedName(GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
ColonColonToken
), GenerateIdentifierName());
798
Assert.Equal(SyntaxKind.
ColonColonToken
, node.ColonColonToken.Kind);
10242
=> SyntaxFactory.AliasQualifiedName(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
ColonColonToken
), GenerateIdentifierName());
11014
Assert.Equal(SyntaxKind.
ColonColonToken
, node.ColonColonToken.Kind());
LexicalAndXml\CrefLexerTests.cs (11)
124
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
));
142
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
, "::", "::"));
143
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
, "::", "::"));
144
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
, "::", "::"));
163
AssertTokens(":::", Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.ColonToken));
164
AssertTokens("::::", Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.
ColonColonToken
));
165
AssertTokens(":::::", Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.ColonToken));
366
Token(SyntaxKind.
ColonColonToken
),
387
Token(SyntaxKind.
ColonColonToken
),
LexicalAndXml\LexicalTests.cs (1)
935
TestPunctuation(SyntaxKind.
ColonColonToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (9)
129
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
));
147
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
, "::", "::"));
148
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
, "::", "::"));
149
AssertTokens("::", Token(SyntaxKind.
ColonColonToken
, "::", "::"));
168
AssertTokens(":::", Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.ColonToken));
169
AssertTokens("::::", Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.
ColonColonToken
));
170
AssertTokens(":::::", Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.
ColonColonToken
), Token(SyntaxKind.ColonToken));
Parsing\CollectionExpressionParsingTests.cs (7)
1826
N(SyntaxKind.
ColonColonToken
);
1842
N(SyntaxKind.
ColonColonToken
);
4007
N(SyntaxKind.
ColonColonToken
);
4704
N(SyntaxKind.
ColonColonToken
);
5009
N(SyntaxKind.
ColonColonToken
);
5069
N(SyntaxKind.
ColonColonToken
);
5133
N(SyntaxKind.
ColonColonToken
);
Parsing\CrefParsingTests.cs (8)
1911
N(SyntaxKind.
ColonColonToken
);
2300
N(SyntaxKind.
ColonColonToken
);
2330
N(SyntaxKind.
ColonColonToken
);
2378
N(SyntaxKind.
ColonColonToken
);
2400
N(SyntaxKind.
ColonColonToken
);
2422
N(SyntaxKind.
ColonColonToken
);
2527
N(SyntaxKind.
ColonColonToken
);
2554
N(SyntaxKind.
ColonColonToken
);
Parsing\DeconstructionTests.cs (1)
2983
N(SyntaxKind.
ColonColonToken
);
Parsing\FieldKeywordParsingTests.cs (1)
1450
N(SyntaxKind.
ColonColonToken
);
Parsing\LambdaReturnTypeParsingTests.cs (2)
2086
N(SyntaxKind.
ColonColonToken
);
2120
N(SyntaxKind.
ColonColonToken
);
Parsing\MemberDeclarationParsingTests.cs (24)
2902
N(SyntaxKind.
ColonColonToken
);
3150
N(SyntaxKind.
ColonColonToken
);
3804
N(SyntaxKind.
ColonColonToken
);
4068
N(SyntaxKind.
ColonColonToken
);
4791
N(SyntaxKind.
ColonColonToken
);
5035
N(SyntaxKind.
ColonColonToken
);
5653
N(SyntaxKind.
ColonColonToken
);
5913
N(SyntaxKind.
ColonColonToken
);
6715
N(SyntaxKind.
ColonColonToken
);
6942
N(SyntaxKind.
ColonColonToken
);
7520
N(SyntaxKind.
ColonColonToken
);
7763
N(SyntaxKind.
ColonColonToken
);
8912
N(SyntaxKind.
ColonColonToken
);
8968
N(SyntaxKind.
ColonColonToken
);
9030
N(SyntaxKind.
ColonColonToken
);
9132
N(SyntaxKind.
ColonColonToken
);
12894
N(SyntaxKind.
ColonColonToken
);
13845
N(SyntaxKind.
ColonColonToken
);
13921
N(SyntaxKind.
ColonColonToken
);
14336
N(SyntaxKind.
ColonColonToken
);
14427
N(SyntaxKind.
ColonColonToken
);
14519
N(SyntaxKind.
ColonColonToken
);
14602
N(SyntaxKind.
ColonColonToken
);
14829
N(SyntaxKind.
ColonColonToken
);
Parsing\NameParsingTests.cs (1)
1467
N(SyntaxKind.
ColonColonToken
);
Parsing\ParserRegressionTests.cs (6)
299
N(SyntaxKind.
ColonColonToken
);
392
N(SyntaxKind.
ColonColonToken
);
437
N(SyntaxKind.
ColonColonToken
);
526
N(SyntaxKind.
ColonColonToken
);
616
N(SyntaxKind.
ColonColonToken
);
719
N(SyntaxKind.
ColonColonToken
);
Parsing\PatternParsingTests.cs (2)
11764
N(SyntaxKind.
ColonColonToken
);
11829
N(SyntaxKind.
ColonColonToken
);
Parsing\SingleLineDeclarationParsingTests.cs (1)
751
N(SyntaxKind.
ColonColonToken
);
Parsing\TypeArgumentListParsingTests.cs (1)
1354
N(SyntaxKind.
ColonColonToken
);
Syntax\SyntaxNodeTests.cs (1)
1825
var cc = SyntaxFactory.Token(SyntaxKind.
ColonColonToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\ClassificationHelpers.cs (1)
417
case SyntaxKind.
ColonColonToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
356
if (nodeOrToken.Kind() is SyntaxKind.ColonToken or SyntaxKind.
ColonColonToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
306
case SyntaxKind.
ColonColonToken
: // for global::
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
89
k => k is SyntaxKind.DotToken or SyntaxKind.MinusGreaterThanToken or SyntaxKind.
ColonColonToken
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
540
if (previousToken.Kind() == SyntaxKind.
ColonColonToken
|| currentToken.Kind() == SyntaxKind.
ColonColonToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
630
if (token.IsKind(SyntaxKind.
ColonColonToken
) &&
1488
or SyntaxKind.
ColonColonToken
2198
or SyntaxKind.
ColonColonToken
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
131
case SyntaxKind.
ColonColonToken
: // for global::
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
231
if (token.IsKind(SyntaxKind.
ColonColonToken
))