38 references to Create
Microsoft.CodeAnalysis (4)
InternalUtilities\EnumerableExtensions.cs (1)
715return ImmutableDictionary.Create<K, V>();
InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (1)
15public static readonly ImmutableSetWithInsertionOrder<T> Empty = new ImmutableSetWithInsertionOrder<T>(ImmutableDictionary.Create<T, uint>(), 0u);
Syntax\AbstractWarningStateMap.cs (2)
79this.SpecificWarningOption = ImmutableDictionary.Create<string, TWarningState>(); 86this.SpecificWarningOption = specific ?? ImmutableDictionary.Create<string, TWarningState>();
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (2)
164properties: ImmutableDictionary.Create<string, string?>() 184properties: ImmutableDictionary.Create<string, string?>()
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
715return ImmutableDictionary.Create<K, V>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
18new BidirectionalMap<TKey, TValue>(ImmutableDictionary.Create<TKey, TValue>(), ImmutableDictionary.Create<TValue, TKey>());
Microsoft.CodeAnalysis.CSharp (2)
Syntax\CSharpPragmaWarningStateMap.cs (2)
86var accumulatedSpecificWarningState = ImmutableDictionary.Create<string, PragmaWarningState>(); 113accumulatedSpecificWarningState = ImmutableDictionary.Create<string, PragmaWarningState>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Collections\Immutable\Maps\MapTests.cs (3)
21var map = ImmutableDictionary.Create<string, int>().Add("1", 1); 38var map = ImmutableDictionary.Create<string, int>() 53var map = ImmutableDictionary.Create<string, int>()
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (2)
164properties: ImmutableDictionary.Create<string, string?>() 184properties: ImmutableDictionary.Create<string, string?>()
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\CodeFixes\CodeFixService.cs (1)
870var fixerMap = ImmutableDictionary.Create<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>();
Microsoft.CodeAnalysis.VisualBasic (8)
Binding\LocalBinderBuilder.vb (2)
36_nodeMap = ImmutableDictionary.Create(Of SyntaxNode, BlockBaseBinder)() 37_listMap = ImmutableDictionary.Create(Of SyntaxList(Of StatementSyntax), BlockBaseBinder)()
Compilation\VisualBasicCompilation.vb (6)
386Dim declMap = ImmutableDictionary.Create(Of SyntaxTree, DeclarationTableEntry)() 394ImmutableDictionary.Create(Of SyntaxTree, Integer)(), 636declMap = ImmutableDictionary.Create(Of SyntaxTree, DeclarationTableEntry)() 1032Dim ordinalMap = ImmutableDictionary.Create(Of SyntaxTree, Integer)() 1065ImmutableDictionary.Create(Of SyntaxTree, Integer)(), 1066ImmutableDictionary.Create(Of SyntaxTree, DeclarationTableEntry)(),
Microsoft.CodeAnalysis.Workspaces (7)
Diagnostics\DiagnosticData.cs (1)
207additionalProperties ??= ImmutableDictionary.Create<string, string?>();
Options\GlobalOptionService.cs (2)
34private ImmutableDictionary<OptionKey2, object?> _currentValues = ImmutableDictionary.Create<OptionKey2, object?>(); 291_instance._currentValues = ImmutableDictionary.Create<OptionKey2, object?>();
Options\LegacyWorkspaceOptionService.cs (1)
37private ImmutableDictionary<OptionKey, object?> _currentExternallyDefinedOptionValues = ImmutableDictionary.Create<OptionKey, object?>();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
715return ImmutableDictionary.Create<K, V>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
18new BidirectionalMap<TKey, TValue>(ImmutableDictionary.Create<TKey, TValue>(), ImmutableDictionary.Create<TValue, TKey>());
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
715return ImmutableDictionary.Create<K, V>();
src\Compilers\Core\Portable\InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (1)
15public static readonly ImmutableSetWithInsertionOrder<T> Empty = new ImmutableSetWithInsertionOrder<T>(ImmutableDictionary.Create<T, uint>(), 0u);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\TestSerializerService.cs (1)
40private static readonly ImmutableDictionary<string, MetadataReference> s_wellKnownReferences = ImmutableDictionary.Create<string, MetadataReference>()
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
1176public ImmutableDictionary<string, string> _arguments = ImmutableDictionary.Create<string, string>();
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableDictionary.cs (1)
102return Create<TKey, TValue>().ToBuilder();
System.Windows.Forms.Analyzers.CSharp.Tests (1)
CompilerAnalyzerConfigOptions.cs (1)
17public static CompilerAnalyzerConfigOptions Empty { get; } = new(ImmutableDictionary.Create<string, string>());