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