24 references to RoslynImmutableInterlocked
Microsoft.CodeAnalysis (12)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
91
RoslynImmutableInterlocked
.InterlockedInitialize(ref _lazyNodeActionsByKind, AnalyzerExecutor.GetNodeActionsByKind(nodeActions));
108
RoslynImmutableInterlocked
.InterlockedInitialize(ref _lazyOperationActionsByKind, AnalyzerExecutor.GetOperationActionsByKind(operationActions));
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
58
/// <see cref="
RoslynImmutableInterlocked
"/> class depends on it, as well as others externally.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (1)
15
/// Private helper class for use only by <see cref="
RoslynImmutableInterlocked
"/> and
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
100
var originalDictionary =
RoslynImmutableInterlocked
.InterlockedExchange(ref _dictionary, default);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
52
/// <see cref="
RoslynImmutableInterlocked
"/> class depends on it, as well as others externally.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (1)
15
/// Private helper class for use only by <see cref="
RoslynImmutableInterlocked
"/> and
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
66
var originalSet =
RoslynImmutableInterlocked
.InterlockedExchange(ref _set, default);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
59
/// <see cref="
RoslynImmutableInterlocked
"/> class depends on it, as well as others externally.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (1)
15
/// Private helper class for use only by <see cref="
RoslynImmutableInterlocked
"/> and
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
76
var originalList =
RoslynImmutableInterlocked
.InterlockedExchange(ref _list, default);
Syntax\SyntaxTree.cs (1)
373
if (
RoslynImmutableInterlocked
.VolatileRead(ref _lazyChecksum).IsDefault)
Microsoft.CodeAnalysis.CSharp (12)
Compilation\CSharpCompilation.cs (3)
1062
RoslynImmutableInterlocked
.InterlockedInitialize(ref _mappedPathToSyntaxTree, computeMappedPathToSyntaxTree());
1088
RoslynImmutableInterlocked
.InterlockedInitialize(ref _contentHashToSyntaxTree, computeHashToSyntaxTree());
1115
RoslynImmutableInterlocked
.InterlockedInitialize(ref _pathToSyntaxTree, computePathToSyntaxTree());
Symbols\Attributes\PEAttributeData.cs (2)
101
if (
RoslynImmutableInterlocked
.VolatileRead(in _lazyConstructorArguments).IsDefault ||
RoslynImmutableInterlocked
.VolatileRead(in _lazyNamedArguments).IsDefault)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1469
if (
RoslynImmutableInterlocked
.VolatileRead(ref _lazyMembersInDeclarationOrder).IsDefault)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
156
if (
RoslynImmutableInterlocked
.VolatileRead(ref _lazyDeclaredConstraintTypes).IsDefault)
Symbols\NamedTypeSymbol.cs (1)
599
RoslynImmutableInterlocked
.InterlockedInitialize(ref _lazyRequiredMembers, requiredMembers);
Symbols\Source\LocalFunctionSymbol.cs (2)
185
if (!
RoslynImmutableInterlocked
.VolatileRead(in _lazyParameters).IsDefault)
230
RoslynImmutableInterlocked
.VolatileWrite(ref _lazyParameters, parameters);
Symbols\SubstitutedMethodSymbol.cs (1)
103
if (!
RoslynImmutableInterlocked
.VolatileRead(ref _lazyTypeParameters).IsDefault)
Symbols\SubstitutedNamedTypeSymbol.cs (1)
104
if (!
RoslynImmutableInterlocked
.VolatileRead(ref _lazyTypeParameters).IsDefault)