37 references to Create
IdeCoreBenchmarks (1)
CSharpIdeAnalyzerBenchmarks.cs (1)
54analyzerIds: ImmutableHashSet.Create(AnalyzerName),
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
49public ImmutableHashSet<char> TriggerCharacters { get; } = ImmutableHashSet.Create(' ');
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
951return ImmutableHashSet.Create(defaultSeverity); 972return ImmutableHashSet.Create(defaultSeverity);
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet.cs (1)
17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
50var documentImmutableSet = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
SarifV2ErrorLoggerTests.cs (3)
377(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Error)))); 498(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress)), 499(AnalyzerForErrorLogTest.Descriptor2.Id, 1, ImmutableHashSet.Create(ReportDiagnostic.Suppress))));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
245.WithExcludedPartTypes(ImmutableHashSet.Create(typeof(IMetadataAsSourceFileProvider)))
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
50var documentImmutableSet = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
113=> document.SourceCodeKind == SourceCodeKind.Regular ? ImmutableHashSet<string>.Empty : ImmutableHashSet.Create(PredefinedInteractiveTextViewRoles.InteractiveTextViewRole);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
292.WithExcludedPartTypes(ImmutableHashSet.Create(typeof(IMetadataAsSourceFileProvider)))
SymbolFinder\DependentTypeFinderTests.cs (5)
651var results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(csProject), CancellationToken.None); 656results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(otherProject), CancellationToken.None); 705baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2)); 712baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2)); 719baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\CompletionServiceTests.vb (1)
106roles:=ImmutableHashSet.Create("MyTextViewRole"))
Microsoft.CodeAnalysis.Features (6)
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons.cs (1)
21: this(ImmutableHashSet.Create(reason))
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons_Constants.cs (4)
15ImmutableHashSet.Create<string>( 32ImmutableHashSet.Create<string>( 37ImmutableHashSet.Create<string>( 42ImmutableHashSet.Create<string>(
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
69var documentsToBeSearched = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Highlights\DocumentHighlightHandler.cs (1)
97ImmutableHashSet.Create(document),
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\ObjectInitializerCompletionProvider.vb (1)
102Public Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet.Create("."c)
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
53var projects = ImmutableHashSet.Create(project);
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
51var projects = ImmutableHashSet.Create(project);
SolutionCrawler\InvocationReasons.cs (1)
21: this(ImmutableHashSet.Create(reason))
SolutionCrawler\InvocationReasons_Constants.cs (2)
74ImmutableHashSet.Create<string>( 79ImmutableHashSet.Create<string>(
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.VisualStudio.LanguageServices (1)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
137return ImmutableHashSet.Create<Document>(currentDocument);