122 references to NameColon
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxFactory.cs (1)
2228case SyntaxKind.NameColon:
Syntax\SyntaxFacts.cs (1)
284if (parent1 == null || !parent1.IsKind(NameColon))
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
22=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.NameColon, SyntaxKind.NameEquals); 28case SyntaxKind.NameColon:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
405SyntaxKind.NameColon or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
644node.IsParentKind(SyntaxKind.NameColon) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
450targetToken.Parent.IsKind(SyntaxKind.NameColon) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1420if (leftToken.IsKind(SyntaxKind.ColonToken) && leftToken.Parent is (kind: SyntaxKind.NameColon or SyntaxKind.ExpressionColon) && 2118token.Parent.IsKind(SyntaxKind.NameColon) && 2466token.Parent.IsKind(SyntaxKind.NameColon) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
56or SyntaxKind.NameColon
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\SyntaxComparer.cs (1)
516case SyntaxKind.NameColon:
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
184if (expression.Parent is (kind: SyntaxKind.NameColon or SyntaxKind.ExpressionColon) &&
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
22=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.NameColon, SyntaxKind.NameEquals); 28case SyntaxKind.NameColon:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (99)
Parsing\AnonymousFunctionParsingTests.cs (1)
1053N(SyntaxKind.NameColon);
Parsing\AwaitParsingTests.cs (1)
1809N(SyntaxKind.NameColon);
Parsing\CollectionExpressionParsingTests.cs (2)
11360N(SyntaxKind.NameColon); 11450N(SyntaxKind.NameColon);
Parsing\DeclarationExpressionTests.cs (2)
1258N(SyntaxKind.NameColon); 1274N(SyntaxKind.NameColon);
Parsing\DeclarationScopeParsingTests.cs (2)
5567N(SyntaxKind.NameColon); 5732N(SyntaxKind.NameColon);
Parsing\PatternParsingTests.cs (46)
1894N(SyntaxKind.NameColon); 1988N(SyntaxKind.NameColon); 2071N(SyntaxKind.NameColon); 2090N(SyntaxKind.NameColon); 2113N(SyntaxKind.NameColon); 2413N(SyntaxKind.NameColon); 4370N(SyntaxKind.NameColon); 4389N(SyntaxKind.NameColon); 4412N(SyntaxKind.NameColon); 4476N(SyntaxKind.NameColon); 4495N(SyntaxKind.NameColon); 4518N(SyntaxKind.NameColon); 4586N(SyntaxKind.NameColon); 4650N(SyntaxKind.NameColon); 4718N(SyntaxKind.NameColon); 4737N(SyntaxKind.NameColon); 4801N(SyntaxKind.NameColon); 4820N(SyntaxKind.NameColon); 4933N(SyntaxKind.NameColon); 4952N(SyntaxKind.NameColon); 4975N(SyntaxKind.NameColon); 5035N(SyntaxKind.NameColon); 5054N(SyntaxKind.NameColon); 5077N(SyntaxKind.NameColon); 5141N(SyntaxKind.NameColon); 5201N(SyntaxKind.NameColon); 5265N(SyntaxKind.NameColon); 5284N(SyntaxKind.NameColon); 5344N(SyntaxKind.NameColon); 5363N(SyntaxKind.NameColon); 5660N(SyntaxKind.NameColon); 5882N(SyntaxKind.NameColon); 5975N(SyntaxKind.NameColon); 6012N(SyntaxKind.NameColon); 6048N(SyntaxKind.NameColon); 6089N(SyntaxKind.NameColon); 6139N(SyntaxKind.NameColon); 6189N(SyntaxKind.NameColon); 6240N(SyntaxKind.NameColon); 6255N(SyntaxKind.NameColon); 6294N(SyntaxKind.NameColon); 6791N(SyntaxKind.NameColon); 6875N(SyntaxKind.NameColon); 7041N(SyntaxKind.NameColon); 10486N(SyntaxKind.NameColon); 11905N(SyntaxKind.NameColon);
Parsing\PatternParsingTests2.cs (9)
809N(SyntaxKind.NameColon); 1385N(SyntaxKind.NameColon); 1431N(SyntaxKind.NameColon); 1481N(SyntaxKind.NameColon); 1508N(SyntaxKind.NameColon); 1561N(SyntaxKind.NameColon); 1588N(SyntaxKind.NameColon); 1638N(SyntaxKind.NameColon); 1699N(SyntaxKind.NameColon);
Parsing\ScriptParsingTests.cs (4)
5413N(SyntaxKind.NameColon); 6046N(SyntaxKind.NameColon); 6110N(SyntaxKind.NameColon); 6126N(SyntaxKind.NameColon);
Parsing\StatementParsingTests.cs (11)
3942N(SyntaxKind.NameColon); 3983N(SyntaxKind.NameColon); 3999N(SyntaxKind.NameColon); 4812N(SyntaxKind.NameColon); 4852N(SyntaxKind.NameColon); 4939N(SyntaxKind.NameColon); 4979N(SyntaxKind.NameColon); 5068N(SyntaxKind.NameColon); 5083N(SyntaxKind.NameColon); 5119N(SyntaxKind.NameColon); 5134N(SyntaxKind.NameColon);
Parsing\SwitchExpressionParsingTests.cs (18)
2899N(SyntaxKind.NameColon); 2943N(SyntaxKind.NameColon); 3022N(SyntaxKind.NameColon); 3066N(SyntaxKind.NameColon); 3145N(SyntaxKind.NameColon); 3189N(SyntaxKind.NameColon); 3274N(SyntaxKind.NameColon); 3318N(SyntaxKind.NameColon); 3403N(SyntaxKind.NameColon); 3418N(SyntaxKind.NameColon); 3462N(SyntaxKind.NameColon); 3477N(SyntaxKind.NameColon); 3568N(SyntaxKind.NameColon); 3583N(SyntaxKind.NameColon); 3627N(SyntaxKind.NameColon); 3642N(SyntaxKind.NameColon); 4174N(SyntaxKind.NameColon); 4200N(SyntaxKind.NameColon);
Parsing\UsingDirectiveParsingTests.cs (2)
3702N(SyntaxKind.NameColon); 3864N(SyntaxKind.NameColon);
Parsing\ValueTupleTests.cs (1)
653N(SyntaxKind.NameColon);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Simplification\CSharpSimplificationService.Expander.cs (1)
633(parent.Kind() == SyntaxKind.NameColon))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
405SyntaxKind.NameColon or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
644node.IsParentKind(SyntaxKind.NameColon) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
450targetToken.Parent.IsKind(SyntaxKind.NameColon) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1420if (leftToken.IsKind(SyntaxKind.ColonToken) && leftToken.Parent is (kind: SyntaxKind.NameColon or SyntaxKind.ExpressionColon) && 2118token.Parent.IsKind(SyntaxKind.NameColon) && 2466token.Parent.IsKind(SyntaxKind.NameColon) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
56or SyntaxKind.NameColon