3 references to GetOrAdd
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
319
return _codeBlockIntervals.
GetOrAdd
(
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\FindReferences\FindReferenceCache.cs (1)
93
=> _symbolInfoCache.
GetOrAdd
(node, static (n, arg) => arg.SemanticModel.GetSymbolInfo(n, arg.cancellationToken), (SemanticModel, cancellationToken));
Workspace\Solution\SolutionState.cs (1)
1214
return _lazyFilePathToRelatedDocumentIds.
GetOrAdd
(filePath, ComputeDocumentIdsWithFilePath, this);