2 writes to BoundInitializers
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Initializers.cs (1)
34
processedInitializers.
BoundInitializers
= BindFieldInitializers(compilation, scriptInitializerOpt, fieldInitializers, diagsForInstanceInitializers, out firstImportChain);
Compiler\MethodCompiler.cs (1)
638
var processedInitializers = new Binder.ProcessedFieldInitializers() {
BoundInitializers
= ImmutableArray<BoundInitializer>.Empty };
9 references to BoundInitializers
Microsoft.CodeAnalysis.CSharp (9)
Compiler\MethodCompiler.cs (8)
595
if (_moduleBeingBuiltOpt != null && !processedStaticInitializers.
BoundInitializers
.IsDefaultOrEmpty)
597
Debug.Assert(processedStaticInitializers.
BoundInitializers
.All((init) =>
616
if (processedStaticInitializers.
BoundInitializers
.IsDefaultOrEmpty &&
968
var initializerStatements = InitializerRewriter.RewriteScriptInitializer(processedInitializers.
BoundInitializers
, (SynthesizedInteractiveInitializerMethod)methodSymbol, out hasTrailingExpression);
996
includeNonEmptyInitializersInBody = includeInitializersInBody && !processedInitializers.
BoundInitializers
.IsDefaultOrEmpty;
1000
analyzedInitializers = InitializerRewriter.RewriteConstructor(processedInitializers.
BoundInitializers
, methodSymbol);
1083
Debug.Assert(processedInitializers.
BoundInitializers
.IsDefaultOrEmpty || processedInitializers.FirstImportChain != null);
1316
if (_emitMethodBodies && (methodSymbol is not SynthesizedStaticConstructor cctor || cctor.ShouldEmit(processedInitializers.
BoundInitializers
)))
FlowAnalysis\NullableWalker.cs (1)
1472
return GetAfterInitializersState(compilation, method, InitializerRewriter.RewriteConstructor(discardedInitializers.
BoundInitializers
, method), constructorBody, diagnostics: BindingDiagnosticBag.Discarded);