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 (18)
344
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(ContainingType, frame.GetCciAdapter());
350
MethodCompiler.BindSynthesizedMethodBody(frame.Constructor,
CompilationState
, Diagnostics),
389
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(synthesizedEnv, hoistedField.GetCciAdapter());
467
CompilationState
);
503
_lazyStaticLambdaFrame =
CompilationState
.StaticLambdaFrame;
511
methodId = new DebugId(DebugId.UndefinedOrdinal,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal);
532
CompilationState
.StaticLambdaFrame = _lazyStaticLambdaFrame;
538
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(this.ContainingType, frame.GetCciAdapter());
544
MethodCompiler.BindSynthesizedMethodBody(frame.Constructor,
CompilationState
, diagnostics),
549
var F = new SyntheticBoundNodeFactory(frame.StaticConstructor, syntax,
CompilationState
, diagnostics);
687
if (
CompilationState
.Emitting)
691
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(frame, capturedFrame.GetCciAdapter());
1475
lambdaId = new DebugId(_lambdaDebugInfoBuilder.Count,
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal);
1521
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter());
1587
CompilationState
.CurrentImportChain));
1600
var result0 = wasInExpressionLambda ? node : ExpressionLambdaRewriter.RewriteLambda(node,
CompilationState
, TypeMap, RecursionDepth, Diagnostics);
1657
var F = new SyntheticBoundNodeFactory(_currentMethod, node.Syntax,
CompilationState
, Diagnostics);
1683
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, cacheField.GetCciAdapter());
Lowering\MethodToClassRewriter.cs (6)
344
MethodSymbol? wrapper = this.
CompilationState
.GetMethodWrapper(methodBeingWrapped);
353
string methodName = GeneratedNames.MakeBaseMethodWrapperName(this.
CompilationState
.NextWrapperMethodIndex);
357
if (this.
CompilationState
.Emitting)
359
this.
CompilationState
.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapper.GetCciAdapter());
363
wrapper.GenerateMethodBody(this.
CompilationState
, this.Diagnostics);
518
SyntheticBoundNodeFactory factory = new SyntheticBoundNodeFactory(this.CurrentMethod, rewrittenLeft.Syntax, this.
CompilationState
, this.Diagnostics);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
443
if (!type.IsFromCompilation(this.
CompilationState
.ModuleBuilderOpt.Compilation)) return true; // perhaps from ref assembly