3 references to GetOrCreate
Microsoft.CodeAnalysis.Workspaces (1)
ReferenceCountedDisposableCache.cs (1)
13/// the value is evicted. Values can also be explicitly evicted at any time. In that case, any new calls to <see cref="GetOrCreate"/>
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.cs (1)
36var cacheEntry = _ruleSetFileMap.GetOrCreate(ruleSetFileFullPath, static (ruleSetFileFullPath, self) => new RuleSetFile(ruleSetFileFullPath, self), this);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
208_watchedHierarchiesForDocumentMoniker.Add(moniker, _hierarchyEventSinkCache.GetOrCreate(hierarchyToWatch, static (h, self) => new HierarchyEventSink(h, self), this));