20 references to GetOrAdd
Microsoft.Build.Framework (1)
RoslynImmutableInterlocked.cs (1)
306/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis.Analyzers (1)
MetaAnalyzers\ReportDiagnosticAnalyzer.cs (1)
175return ImmutableInterlocked.GetOrAdd(ref _supportedDescriptorFieldsMap, analyzer, descriptorFields);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataConfig.cs (2)
255return ImmutableInterlocked.GetOrAdd(ref s_sinkKindToSourceInfo, sinkKind, sourceInfo); 311return ImmutableInterlocked.GetOrAdd(ref s_sinkKindToSanitizerInfo, sinkKind, sanitizerInfo);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis.Collections.Package (1)
RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis.CSharp (2)
BoundTree\UnboundLambda.cs (2)
625result = ImmutableInterlocked.GetOrAdd(ref _bindingCache, (delegateType, inExpressionTree), result); 1035result = ImmutableInterlocked.GetOrAdd(ref _returnInferenceCache, cacheKey, result);
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Microsoft.CodeAnalysis.Workspaces (5)
Diagnostics\HostDiagnosticAnalyzers.cs (1)
213ImmutableInterlocked.GetOrAdd(ref _compilerDiagnosticAnalyzerMap, language, analyzer);
Options\DocumentOptionSet.cs (1)
56return ImmutableInterlocked.GetOrAdd(ref _values, optionKey, value);
Options\SolutionOptionSet.cs (1)
58return ImmutableInterlocked.GetOrAdd(ref _values, optionKey, value);
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
Workspace\Host\Metadata\MetadataReferenceCache.cs (1)
29referenceSet = ImmutableInterlocked.GetOrAdd(ref _referenceSets, path, new ReferenceSet(this));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
430/// <inheritdoc cref="ImmutableInterlocked.GetOrAdd{TKey, TValue}(ref ImmutableDictionary{TKey, TValue}, TKey, TValue)"/>
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableInterlocked.cs (2)
268return GetOrAdd(ref location, key, value); 297return GetOrAdd(ref location, key, value);