27 references to RoslynImmutableInterlocked
Microsoft.CodeAnalysis (12)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
91RoslynImmutableInterlocked.InterlockedInitialize(ref _lazyNodeActionsByKind, AnalyzerExecutor.GetNodeActionsByKind(nodeActions)); 108RoslynImmutableInterlocked.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)
100var 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)
66var 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)
76var originalList = RoslynImmutableInterlocked.InterlockedExchange(ref _list, default);
Syntax\SyntaxTree.cs (1)
373if (RoslynImmutableInterlocked.VolatileRead(ref _lazyChecksum).IsDefault)
Microsoft.CodeAnalysis.CSharp (15)
Compilation\CSharpCompilation.cs (3)
1125RoslynImmutableInterlocked.InterlockedInitialize(ref _mappedPathToSyntaxTree, computeMappedPathToSyntaxTree()); 1151RoslynImmutableInterlocked.InterlockedInitialize(ref _contentHashToSyntaxTree, computeHashToSyntaxTree()); 1178RoslynImmutableInterlocked.InterlockedInitialize(ref _pathToSyntaxTree, computePathToSyntaxTree());
Symbols\Attributes\PEAttributeData.cs (2)
101if (RoslynImmutableInterlocked.VolatileRead(in _lazyConstructorArguments).IsDefault || RoslynImmutableInterlocked.VolatileRead(in _lazyNamedArguments).IsDefault)
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
583if (RoslynImmutableInterlocked.VolatileRead(in _lazyCustomAttributes).IsDefault)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
932if (RoslynImmutableInterlocked.VolatileRead(in uncommon.lazyCustomAttributes).IsDefault) 1535if (RoslynImmutableInterlocked.VolatileRead(ref _lazyMembersInDeclarationOrder).IsDefault)
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1093if (RoslynImmutableInterlocked.VolatileRead(in _lazyCustomAttributes).IsDefault)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
156if (RoslynImmutableInterlocked.VolatileRead(ref _lazyDeclaredConstraintTypes).IsDefault)
Symbols\NamedTypeSymbol.cs (1)
756RoslynImmutableInterlocked.InterlockedInitialize(ref _lazyRequiredMembers, requiredMembers);
Symbols\Source\LocalFunctionSymbol.cs (2)
186if (!RoslynImmutableInterlocked.VolatileRead(in _lazyParameters).IsDefault) 231RoslynImmutableInterlocked.VolatileWrite(ref _lazyParameters, parameters);
Symbols\SubstitutedMethodSymbol.cs (1)
104if (!RoslynImmutableInterlocked.VolatileRead(ref _lazyTypeParameters).IsDefault)
Symbols\SubstitutedNamedTypeSymbol.cs (1)
104if (!RoslynImmutableInterlocked.VolatileRead(ref _lazyTypeParameters).IsDefault)