1 write to CompilationState
Microsoft.CodeAnalysis.CSharp (1)
Lowering\MethodToClassRewriter.cs (1)
62this.CompilationState = compilationState;
25 references to CompilationState
Microsoft.CodeAnalysis.CSharp (25)
Lowering\ClosureConversion\ClosureConversion.cs (19)
349CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(ContainingType, frame.GetCciAdapter()); 355MethodCompiler.BindSynthesizedMethodBody(frame.Constructor, CompilationState, Diagnostics), 395CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(synthesizedEnv, hoistedField.GetCciAdapter()); 475CompilationState); 511_lazyStaticLambdaFrame = CompilationState.StaticLambdaFrame; 519methodId = new DebugId(DebugId.UndefinedOrdinal, CompilationState.ModuleBuilderOpt.CurrentGenerationOrdinal); 540CompilationState.StaticLambdaFrame = _lazyStaticLambdaFrame; 546CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(this.ContainingType, frame.GetCciAdapter()); 552MethodCompiler.BindSynthesizedMethodBody(frame.Constructor, CompilationState, diagnostics), 557var F = new SyntheticBoundNodeFactory(frame.StaticConstructor, syntax, CompilationState, diagnostics); 698if (CompilationState.Emitting) 702CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(frame, capturedFrame.GetCciAdapter()); 1442Debug.Assert(CompilationState.ModuleBuilderOpt != null); 1497lambdaId = new DebugId(_lambdaDebugInfoBuilder.Count, CompilationState.ModuleBuilderOpt.CurrentGenerationOrdinal); 1549CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter()); 1615CompilationState.CurrentImportChain)); 1628var result0 = wasInExpressionLambda ? node : ExpressionLambdaRewriter.RewriteLambda(node, CompilationState, TypeMap, RecursionDepth, Diagnostics); 1685var F = new SyntheticBoundNodeFactory(_currentMethod, node.Syntax, CompilationState, Diagnostics); 1711CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, cacheField.GetCciAdapter());
Lowering\MethodToClassRewriter.cs (6)
349MethodSymbol? wrapper = this.CompilationState.GetMethodWrapper(methodBeingWrapped); 358string methodName = GeneratedNames.MakeBaseMethodWrapperName(this.CompilationState.NextWrapperMethodIndex); 362if (this.CompilationState.Emitting) 364this.CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapper.GetCciAdapter()); 368wrapper.GenerateMethodBody(this.CompilationState, this.Diagnostics); 527SyntheticBoundNodeFactory factory = new SyntheticBoundNodeFactory(this.CurrentMethod, rewrittenLeft.Syntax, this.CompilationState, this.Diagnostics);