2 writes to Name
Microsoft.CodeAnalysis.Workspaces (2)
OrderableMetadata.cs (2)
29this.Name = (string?)data.GetValueOrDefault("Name"); 36this.Name = name;
46 references to Name
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (16)
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (7)
78if (!orderedCSharpArgumentProviders[i].Metadata.AfterTyped.Contains(orderedCSharpArgumentProviders[i - 1].Metadata.Name)) 81Assert.Contains(orderedCSharpArgumentProviders[i].Metadata.Name, orderedCSharpArgumentProviders[i - 1].Metadata.BeforeTyped); 88Assert.Equal(orderedCSharpArgumentProviders.Last().Metadata.Name, Assert.Single(orderedCSharpArgumentProviders[i].Metadata.BeforeTyped)); 92Assert.Equal(orderedCSharpArgumentProviders[i - 1].Metadata.Name, after); 105Assert.Equal("FirstBuiltInArgumentProvider", firstArgumentProvider.Metadata.Name); 116Assert.Equal("LastBuiltInArgumentProvider", lastArgumentProvider.Metadata.Name); 127Assert.Equal(export.Value.GetType().Name, export.Metadata.Name);
Completion\CompletionProviders\CompletionProviderOrderTests.cs (7)
110if (!orderedCSharpCompletionProviders[i].Metadata.AfterTyped.Contains(orderedCSharpCompletionProviders[i - 1].Metadata.Name)) 113Assert.Contains(orderedCSharpCompletionProviders[i].Metadata.Name, orderedCSharpCompletionProviders[i - 1].Metadata.BeforeTyped); 120Assert.Equal(orderedCSharpCompletionProviders.Last().Metadata.Name, Assert.Single(orderedCSharpCompletionProviders[i].Metadata.BeforeTyped)); 124Assert.Equal(orderedCSharpCompletionProviders[i - 1].Metadata.Name, after); 137Assert.Equal("FirstBuiltInCompletionProvider", firstCompletionProvider.Metadata.Name); 148Assert.Equal("LastBuiltInCompletionProvider", lastCompletionProvider.Metadata.Name); 159Assert.Equal(export.Value.GetType().Name, export.Metadata.Name);
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (1)
81var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.CSharp && p.Metadata.Name == nameof(LoadDirectiveCompletionProvider)).Value;
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
118var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.CSharp && p.Metadata.Name == nameof(ReferenceDirectiveCompletionProvider)).Value;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Extensions\ExportProviderExtensions.cs (2)
20return Assert.IsType<TCommandHandler>(lazyCommandHandlers.Single(lazyCommandHandler => lazyCommandHandler.Metadata.Name == name).Value); 27return Assert.IsType<TCommandHandler>(lazyCommandHandlers.Single(lazyCommandHandler => lazyCommandHandler.Metadata.Name == name && lazyCommandHandler.Metadata.ContentTypes.Contains(contentType)).Value);
Workspaces\TestWorkspace.cs (1)
285return values.Single(value => value.Metadata.Name == name && value.Metadata.ContentTypes.Contains(contentType)).Value;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
CodeFixes\ExtensionOrderingTests.cs (7)
46Assert.True(actualOrder.IndexOf(p => p.Metadata.Name == PredefinedCodeFixProviderNames.AddImport) < 47actualOrder.IndexOf(p => p.Metadata.Name == PredefinedCodeFixProviderNames.FullyQualify)); 53Assert.True(actualOrder.IndexOf(p => p.Metadata.Name == PredefinedCodeFixProviderNames.AddImport) < 54actualOrder.IndexOf(p => p.Metadata.Name == PredefinedCodeFixProviderNames.FullyQualify)); 82Assert.Equal(PredefinedConfigurationFixProviderNames.Suppression, actualOrder[0].Metadata.Name); 83Assert.Equal(PredefinedConfigurationFixProviderNames.ConfigureCodeStyleOption, actualOrder[1].Metadata.Name); 84Assert.Equal(PredefinedConfigurationFixProviderNames.ConfigureSeverity, actualOrder[2].Metadata.Name);
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\CodeRefactoringService.cs (1)
57provider.Metadata.Name, language, provider.Metadata.AfterTyped, provider.Metadata.BeforeTyped);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\CodeFixes\CodeFixService.cs (2)
375var message = lazyFixer.Metadata.Name != null 376? string.Format(FeaturesResources.Error_creating_instance_of_CodeFixProvider_0, lazyFixer.Metadata.Name)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (14)
Completion\ArgumentProviderOrderTests.vb (7)
53If Not orderedVisualBasicArgumentProviders(i).Metadata.AfterTyped.Contains(orderedVisualBasicArgumentProviders(i - 1).Metadata.Name) Then 55Assert.Contains(orderedVisualBasicArgumentProviders(i).Metadata.Name, orderedVisualBasicArgumentProviders(i - 1).Metadata.BeforeTyped) 62Assert.Equal(orderedVisualBasicArgumentProviders.Last().Metadata.Name, Assert.Single(orderedVisualBasicArgumentProviders(i).Metadata.BeforeTyped)) 66Assert.Equal(orderedVisualBasicArgumentProviders(i - 1).Metadata.Name, after) 77Assert.Equal("FirstBuiltInArgumentProvider", firstArgumentProvider.Metadata.Name) 87Assert.Equal("LastBuiltInArgumentProvider", lastArgumentProvider.Metadata.Name) 96Assert.Equal(export.Value.GetType().Name, export.Metadata.Name)
Completion\CompletionProviderOrderTests.vb (7)
71If Not orderedVisualBasicCompletionProviders(i).Metadata.AfterTyped.Contains(orderedVisualBasicCompletionProviders(i - 1).Metadata.Name) Then 73Assert.Contains(orderedVisualBasicCompletionProviders(i).Metadata.Name, orderedVisualBasicCompletionProviders(i - 1).Metadata.BeforeTyped) 80Assert.Equal(orderedVisualBasicCompletionProviders.Last().Metadata.Name, Assert.Single(orderedVisualBasicCompletionProviders(i).Metadata.BeforeTyped)) 84Assert.Equal(orderedVisualBasicCompletionProviders(i - 1).Metadata.Name, after) 95Assert.Equal("FirstBuiltInCompletionProvider", firstCompletionProvider.Metadata.Name) 105Assert.Equal("LastBuiltInCompletionProvider", lastCompletionProvider.Metadata.Name) 114Assert.Equal(export.Value.GetType().Name, export.Metadata.Name)
Microsoft.CodeAnalysis.Workspaces (2)
CodeActions\CodeAction.cs (1)
110var tag = providerMetadata?.Name ?? provider.GetTypeDisplayName();
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
23return this.Nodes.Keys.Where(k => k.Metadata.Name == name);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
ExtensionOrdererTests.cs (1)
212=> actual.Select(i => i.Metadata.Name);