121 references to GetValue
GenerateDocumentationAndConfigFiles (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Metrics (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Metrics.Legacy (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalysisValueProvider.cs (1)
54value = _valueCache.GetValue(key, _valueCacheCallback).Value;
DiagnosticAnalyzer\CachingSemanticModelProvider.cs (1)
41=> s_providerCache.GetValue(compilation, s_createProviderCallback).GetSemanticModel(tree, options);
Syntax\SyntaxNodeExtensions_Tracking.cs (2)
50s_nodeToIdMap.GetValue(node, n => new SyntaxAnnotation(IdAnnotationKind)); 129CurrentNodes tracked = s_rootToCurrentNodesMap.GetValue(trueRoot, r => new CurrentNodes(r));
Microsoft.CodeAnalysis.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
27=> s_lValueFlowCapturesCache.GetValue(cfg, CreateLValueFlowCaptures);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Host\Mef\CodeStyleHostLanguageServices.MefHostExportProvider.cs (3)
26var exportProvider = s_exportProvidersByLanguageCache.GetValue(hostLanguageServices.Language, MefHostExportProvider.Create); 32=> hostLanguageServices != null ? s_mappedLanguageServices.GetValue(hostLanguageServices, Create) : null; 35=> s_mappedLanguageServices.GetValue(hostLanguageServices, Create);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
29=> s_rootToDirectiveInfo.GetValue(
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1017attrs = s_declAttributes.GetValue(declaration, declaration => 1030attrs = s_declReturnAttributes.GetValue(declaration, declaration =>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
29=> s_rootToDirectiveInfo.GetValue(
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\UI\InlineRenameAdornmentManager.cs (1)
136(RenameFlyoutViewModel)s_createdViewModels.GetValue(
Shared\Extensions\HostWorkspaceServicesExtensions.cs (1)
53contentTypeMap = s_hostServicesToContentTypeMap.GetValue(workspaceServices, CreateContentTypeMap);
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Extensions.SnapshotSourceText.cs (1)
238weakReference = s_textImageToEditorSnapshotMap.GetValue(
Extensions.TextBufferContainer.cs (1)
49return s_textContainerMap.GetValue(buffer, static buffer => new TextBufferContainer(buffer));
Microsoft.CodeAnalysis.Extensions.Package (1)
Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.Features (8)
AddImport\AbstractAddImportFeatureService.cs (1)
401return s_isInPackagesDirectory.GetValue(
CodeFixes\Service\CodeFixService.cs (1)
974: _projectFixersMap.GetValue(document.Project.AnalyzerReferences, _ => ComputeProjectFixers(document));
Common\AbstractProjectExtensionProvider.cs (3)
63=> s_referencesToExtensionsMap.GetValue(analyzerReferences, _ => new(ComputeExtensions(language, analyzerReferences))).Value; 70var provider = s_referenceToProviderMap.GetValue( 116return s_extensionInfoMap.GetValue(extension,
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
245cache.GetValue(key, _ => cacheEntry);
EmbeddedLanguages\AbstractLanguageDetector.cs (1)
210=> s_compilationToDetector.GetValue(compilation, _ => default(TDetectorInfo).Create(compilation, info));
Workspace\CompileTimeSolutionProvider.cs (1)
140compileTimeSolution = _designTimeToCompileTimeSolution.GetValue(designTimeSolution, _ => compileTimeSolution);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Microsoft.CodeAnalysis.Workspaces (27)
Diagnostics\DiagnosticAnalyzerInfoCache.cs (2)
139=> _descriptorsInfo.GetValue(analyzer, CalculateDescriptorsInfo); 162=> _suppressionsInfo.GetValue(suppressor, CalculateSuppressionsInfo);
Diagnostics\Extensions.cs (1)
470var lazyChecksum = s_projectToDiagnosticChecksum.GetValue(
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
140var dictionary = s_solutionToDependentProjectMap.GetValue(solution, static _ => []);
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (1)
60_ = s_projectToIndex.GetValue(project.State, _ => tuple);
FindSymbols\FindReferences\FindReferenceCache.cs (1)
30var lazy = s_cache.GetValue(document, static document => AsyncLazy.Create(ComputeCacheAsync, document));
FindSymbols\Shared\AbstractSyntaxIndex.cs (2)
70s_documentToIndex.GetValue(document, _ => indexCopy); 72s_documentIdToIndex.GetValue(document.Id, _ => indexCopy);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
122var directivesChecksum = s_ppDirectivesToChecksum.GetValue(
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
159var asyncLazy = s_peReferenceToInfo.GetValue( 179var asyncLazy = s_metadataIdToSymbolTreeInfo.GetValue(
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
73var lazy = s_projectToSourceChecksum.GetValue(
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
354=> s_projectStringTable.GetValue(project, static _ => StringTable.GetInstance());
Shared\Extensions\INamespaceSymbolExtensions.cs (2)
42var names1 = s_namespaceToNameMap.GetValue(n1, GetNameParts); 43var names2 = s_namespaceToNameMap.GetValue(n2, GetNameParts);
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
46=> _generatorTelemetryKeys.GetValue(generator, g => new GeneratorTelemetryKey(g, getAnalyzerReference(g)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Workspace\Solution\DocumentState.cs (1)
658existingId = s_syntaxTreeToIdMap.GetValue(tree, t => localId);
Workspace\Solution\FileTextLoader.cs (1)
67=> s_isObsoleteCreateTextOverriden.GetValue(
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (1)
278s_assemblyOrModuleSymbolToProjectMap.GetValue(assemblyOrModuleSymbol, _ => projectId);
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
210var lazy = s_compilationToSkeletonSet.GetValue(compilation,
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (2)
85return s_projectStateToSourceGeneratorsMap.GetValue(projectState, ComputeSourceGenerators); 124=> analyzerReferenceMap.GetValue(
Workspace\Solution\StateChecksums.cs (1)
602=> s_objectToChecksumCollectionCache.GetValue(value, _ => new StrongBox<TResult>(checksumCreator(value, arg))).Value;
Workspace\Solution\TextLoader.cs (1)
63if (s_isObsoleteLoadTextAndVersionAsyncOverriden.GetValue(
Workspace\Workspace_Registration.cs (1)
83return s_bufferToWorkspaceRegistrationMap.GetValue(textContainer, static _ => new WorkspaceRegistration());
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonSchemaTransformCache.cs (2)
63return (JsonElement)_functionSchemaCache.GetValue(function, _functionSchemaCreateValueCallback); 75? (JsonElement?)_responseFormatCache.GetValue(responseFormat, _responseFormatCreateValueCallback)
Microsoft.Maui.Controls (6)
PlatformBindingHelpers.cs (4)
41 var proxy = BindableObjectProxy<TPlatformView>.BindableObjectProxies.GetValue(target, (TPlatformView key) => new BindableObjectProxy<TPlatformView>(key)); 113 var proxy = BindableObjectProxy<TPlatformView>.BindableObjectProxies.GetValue(target, (TPlatformView key) => new BindableObjectProxy<TPlatformView>(key)); 124 var proxy = BindableObjectProxy<TPlatformView>.BindableObjectProxies.GetValue(target, (TPlatformView key) => new BindableObjectProxy<TPlatformView>(key)); 133 var proxy = BindableObjectProxy<TPlatformView>.BindableObjectProxies.GetValue(target, (TPlatformView key) => new BindableObjectProxy<TPlatformView>(key));
ResourceDictionary.cs (2)
49 var instance = s_instances.GetValue(typeof(T), static _ => new T()); 69 return s_instances.GetValue(type, _ => (ResourceDictionary)Activator.CreateInstance(type));
Microsoft.VisualStudio.LanguageServices (1)
Extensions\VisualStudioWorkspaceImplExtensions.cs (1)
26var itemIdToImageHandle = s_hierarchyToItemIdToImageHandle.GetValue(hierarchy, static _ => []);
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\PerfService.cs (1)
29return (long) perfElementIds.GetValue(
PresentationFramework (3)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
21return InspectableInfoTable.GetValue(_this, o => PregenerateNativeTypeInformation(o).inspectableInfo);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
465return _adapterTable.GetValue(__this, (enumerator) => new ToAbiHelper(enumerator));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
255return _adapterTable.GetValue(__this, (list) => new ToAbiHelper(list));
Roslyn.Diagnostics.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
29=> s_rootToDirectiveInfo.GetValue(
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
346public TValue GetOrCreateValue(TKey key) => GetValue(key, _ => Activator.CreateInstance<TValue>());
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ContextAware.cs (1)
95return _collectibleTable.GetValue(t, k => f(k));
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
68Type implementationType = _forwarderInterfaceCache.GetValue(runtimeType, runtimeType =>
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
2185return _table.GetValue(source, static s => new SourceObservable<TOutput>(s));
System.Transactions.Local (1)
System\Transactions\Transaction.cs (1)
1074return s_contextDataTable.GetValue(contextKey, (env) => new ContextData(true));
Test.Utilities (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>
Text.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
639return s_cachedOptions.GetValue(
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
49return s_perTreeOptionsCache.GetValue(optionsMap, _ => new SyntaxTreeCategorizedAnalyzerConfigOptions(analyzerConfigOptions));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
34=> s_namespaceOrTypeToNameMap.GetValue(symbol, static symbol =>