58 references to Create
GenerateDocumentationAndConfigFiles (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
IdeCoreBenchmarks (1)
CSharpIdeAnalyzerBenchmarks.cs (1)
53analyzerIds: ImmutableHashSet.Create(AnalyzerName),
Metrics (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Metrics.Legacy (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
49public ImmutableHashSet<char> TriggerCharacters { get; } = ImmutableHashSet.Create(' ');
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
949return ImmutableHashSet.Create(defaultSeverity); 970return ImmutableHashSet.Create(defaultSeverity);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Analyzers (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.AnalyzerUtilities (18)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAbstractValue.cs (1)
45: this(ImmutableHashSet.Create(analysisEntity),
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAbstractValue.cs (1)
48return new DisposeAbstractValue(ImmutableHashSet.Create(escapingOperation), DisposeAbstractValueKind.Escaped);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisValueSet.cs (3)
56=> new(ImmutableHashSet.Create(analysisValue), ImmutableHashSet<GlobalFlowStateAnalysisValueSet>.Empty, height: 0, GlobalFlowStateAnalysisValueSetKind.Known); 70return GlobalFlowStateAnalysisValueSet.Create(AnalysisValues, ImmutableHashSet.Create(newRoot), newHeight); 111var negatedAnalysisValues = ImmutableHashSet.Create(AnalysisValues.Single().GetNegatedValue());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAbstractValue.cs (4)
28public static PointsToAbstractValue NoLocation { get; } = new PointsToAbstractValue(ImmutableHashSet.Create(AbstractLocation.NoLocation), NullAbstractValue.NotNull); 29public static PointsToAbstractValue NullLocation { get; } = new PointsToAbstractValue(ImmutableHashSet.Create(AbstractLocation.Null), NullAbstractValue.Null); 72return new PointsToAbstractValue(ImmutableHashSet.Create(location), mayBeNull ? NullAbstractValue.MaybeNull : NullAbstractValue.NotNull); 77return new PointsToAbstractValue(ImmutableHashSet.Create(lValueCapturedOperation));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAbstractValue.cs (1)
62ImmutableHashSet.Create<SymbolAccess>(
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (7)
30public static ValueContentAbstractValue ContainsNullLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create((object?)null), ValueContainsNonLiteralState.No); 31public static ValueContentAbstractValue ContainsEmptyStringLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(string.Empty), ValueContainsNonLiteralState.No); 32public static ValueContentAbstractValue ContainsZeroIntergralLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(0), ValueContainsNonLiteralState.No); 33public static ValueContentAbstractValue ContainsOneIntergralLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(1), ValueContainsNonLiteralState.No); 34private static ValueContentAbstractValue ContainsTrueLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(true), ValueContainsNonLiteralState.No); 35private static ValueContentAbstractValue ContainsFalseLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(false), ValueContainsNonLiteralState.No); 77return new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(literal), ValueContainsNonLiteralState.No);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Collections.Package (1)
Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
48var 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.Features (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
48var documentImmutableSet = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
SymbolFinder\SymbolFinderTests.cs (5)
657var results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(csProject), CancellationToken.None); 662results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(otherProject), CancellationToken.None); 711baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2)); 718baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2)); 725baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\CompletionServiceTests.vb (1)
107roles:=ImmutableHashSet.Create("MyTextViewRole"))
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Features (1)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
69var documentsToBeSearched = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Highlights\DocumentHighlightHandler.cs (1)
97ImmutableHashSet.Create(document),
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
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 (3)
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
51var projects = ImmutableHashSet.Create(project);
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
49var projects = ImmutableHashSet.Create(project);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Microsoft.VisualStudio.LanguageServices (1)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
137return ImmutableHashSet.Create<Document>(currentDocument);
Roslyn.Diagnostics.Analyzers (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Test.Utilities (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>
Text.Analyzers (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (1)
19/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/>