4 references to GetOrCreate
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (1)
37
var rootWatcher = _sharedRootWatchers.
GetOrCreate
<object?>(rootPath, static (key, _) => new FileSystemWatcher(key), arg: null);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
12
/// 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)
33
var cacheEntry = _ruleSetFileMap.
GetOrCreate
(ruleSetFileFullPath, static (ruleSetFileFullPath, self) => new RuleSetFile(ruleSetFileFullPath, self), this);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
202
_watchedHierarchiesForDocumentMoniker.Add(moniker, _hierarchyEventSinkCache.
GetOrCreate
(hierarchyToWatch, static (h, self) => new HierarchyEventSink(h, self), this));