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