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)
971var initializerStatements = InitializerRewriter.RewriteScriptInitializer(processedInitializers.BoundInitializers, (SynthesizedInteractiveInitializerMethod)methodSymbol, out hasTrailingExpression); 1003analyzedInitializers = InitializerRewriter.RewriteConstructor(processedInitializers.BoundInitializers, methodSymbol);
FlowAnalysis\NullableWalker.cs (1)
1472return GetAfterInitializersState(compilation, method, InitializerRewriter.RewriteConstructor(discardedInitializers.BoundInitializers, method), constructorBody, diagnostics: BindingDiagnosticBag.Discarded);