5 references to InitializerRewriter
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Initializers.cs (2)
257var expression = InitializerRewriter.GetTrailingScriptExpression(statement); 276if (InitializerRewriter.GetTrailingScriptExpression(labeledStatementBody) != null)
Compiler\MethodCompiler.cs (2)
968var initializerStatements = InitializerRewriter.RewriteScriptInitializer(processedInitializers.BoundInitializers, (SynthesizedInteractiveInitializerMethod)methodSymbol, out hasTrailingExpression); 1000analyzedInitializers = InitializerRewriter.RewriteConstructor(processedInitializers.BoundInitializers, methodSymbol);
FlowAnalysis\NullableWalker.cs (1)
1411return GetAfterInitializersState(compilation, method, InitializerRewriter.RewriteConstructor(discardedInitializers.BoundInitializers, method), constructorBody, diagnostics: BindingDiagnosticBag.Discarded);