1 instantiation of DeclaredMembersAndInitializers
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2946
public static readonly DeclaredMembersAndInitializers UninitializedSentinel = new
DeclaredMembersAndInitializers
();
34 references to DeclaredMembersAndInitializers
Microsoft.CodeAnalysis.CSharp (34)
Symbols\Source\SourceMemberContainerSymbol.cs (34)
203
private
DeclaredMembersAndInitializers
? _lazyDeclaredMembersAndInitializers =
DeclaredMembersAndInitializers
.UninitializedSentinel;
1714
var
declared = Volatile.Read(ref _lazyDeclaredMembersAndInitializers);
1715
RoslynDebug.AssertOrFailFast(declared !=
DeclaredMembersAndInitializers
.UninitializedSentinel);
2886
public
DeclaredMembersAndInitializers
ToReadOnlyAndFree(CSharpCompilation compilation)
2946
public static readonly
DeclaredMembersAndInitializers
UninitializedSentinel = new DeclaredMembersAndInitializers();
3021
public MembersAndInitializersBuilder(
DeclaredMembersAndInitializers
declaredMembersAndInitializers)
3023
Debug.Assert(declaredMembersAndInitializers !=
DeclaredMembersAndInitializers
.UninitializedSentinel);
3029
public MembersAndInitializers ToReadOnlyAndFree(
DeclaredMembersAndInitializers
declaredMembers)
3110
DeclaredMembersAndInitializers
.AssertInitializers(result, compilation);
3125
public IReadOnlyCollection<Symbol> GetNonTypeMembers(
DeclaredMembersAndInitializers
declaredMembers)
3130
public void AddNonTypeMember(Symbol member,
DeclaredMembersAndInitializers
declaredMembers)
3185
var
declaredMembersAndInitializers = getDeclaredMembersAndInitializers();
3204
DeclaredMembersAndInitializers
? getDeclaredMembersAndInitializers()
3206
var
declaredMembersAndInitializers = _lazyDeclaredMembersAndInitializers;
3207
if (declaredMembersAndInitializers !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3222
var
alreadyKnown = Interlocked.CompareExchange(ref _lazyDeclaredMembersAndInitializers, declaredMembersAndInitializers,
DeclaredMembersAndInitializers
.UninitializedSentinel);
3223
if (alreadyKnown !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3239
DeclaredMembersAndInitializers
? buildDeclaredMembersAndInitializers(BindingDiagnosticBag diagnostics)
3265
if (Volatile.Read(ref _lazyDeclaredMembersAndInitializers) !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3340
var
declared = Volatile.Read(ref _lazyDeclaredMembersAndInitializers);
3342
if (declared is not null && declared !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3361
var
declared = Volatile.Read(ref _lazyDeclaredMembersAndInitializers);
3362
if (declared is not null && declared !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3406
var
declared = Volatile.Read(ref _lazyDeclaredMembersAndInitializers);
3407
if (declared is not null && declared !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3431
var
declared = Volatile.Read(ref _lazyDeclaredMembersAndInitializers);
3432
if (declared is not null && declared !=
DeclaredMembersAndInitializers
.UninitializedSentinel)
3477
private void AddSynthesizedMembers(MembersAndInitializersBuilder builder,
DeclaredMembersAndInitializers
declaredMembersAndInitializers, BindingDiagnosticBag diagnostics)
4150
private void AddSynthesizedSimpleProgramEntryPointIfNecessary(MembersAndInitializersBuilder builder,
DeclaredMembersAndInitializers
declaredMembersAndInitializers)
4159
private void AddSynthesizedTypeMembersIfNecessary(MembersAndInitializersBuilder builder,
DeclaredMembersAndInitializers
declaredMembersAndInitializers, BindingDiagnosticBag diagnostics)
4784
private void AddSynthesizedConstructorsIfNecessary(MembersAndInitializersBuilder builder,
DeclaredMembersAndInitializers
declaredMembersAndInitializers, BindingDiagnosticBag diagnostics)
4864
private void AddSynthesizedTupleMembersIfNecessary(MembersAndInitializersBuilder builder,
DeclaredMembersAndInitializers
declaredMembersAndInitializers)