31 references to NameColon
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1556elementNamesBuilder.Add(subPattern.NameColon?.Name.Identifier.ValueText);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (28)
Semantics\PatternMatchingTests3.cs (28)
53AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 54var x = subpatterns[0].NameColon.Name; 60AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 61var y = subpatterns[1].NameColon.Name; 113AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 114var x = subpatterns[0].NameColon.Name; 123AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 124var y = subpatterns[1].NameColon.Name; 164AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 165var x = subpatterns[0].NameColon.Name; 172AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 173var y = subpatterns[1].NameColon.Name; 209AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 210var x = subpatterns[0].NameColon.Name; 217AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 218var y = subpatterns[1].NameColon.Name; 262AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 263var x = subpatterns[0].NameColon.Name; 270AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 271var y = subpatterns[1].NameColon.Name; 303AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 304var x = subpatterns[0].NameColon.Name; 311AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 312var y = subpatterns[1].NameColon.Name; 350AssertEmpty(model.GetSymbolInfo(subpatterns[0].NameColon)); 351var x = subpatterns[0].NameColon.Name; 358AssertEmpty(model.GetSymbolInfo(subpatterns[1].NameColon)); 359var y = subpatterns[1].NameColon.Name;
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
78p => p.NameColon?.Name.Identifier.ValueText).Where(s => !string.IsNullOrEmpty(s))!);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1556elementNamesBuilder.Add(subPattern.NameColon?.Name.Identifier.ValueText);