1 write to CompilationState
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SyntheticBoundNodeFactory.cs (1)
120
this.
CompilationState
= compilationState;
19 references to CompilationState
Microsoft.CodeAnalysis.CSharp (19)
Compiler\MethodBodySynthesizer.Lowered.cs (1)
334
F.
CompilationState
.AddMethodWrapper(methodBeingWrapped, this, body);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
444
SyntheticBoundNodeFactory statementFactory = new SyntheticBoundNodeFactory(_method, whenClause, _methodBodyFactory.
CompilationState
, _diagnostics);
472
SyntheticBoundNodeFactory statementFactory = new SyntheticBoundNodeFactory(_method, original.Syntax, _methodBodyFactory.
CompilationState
, _diagnostics);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
95
var typeCompilationState = _factory.
CompilationState
;
Lowering\LocalRewriter\LocalRewriter.cs (4)
197
get { return _factory.
CompilationState
.ModuleBuilderOpt; }
387
if (_factory.
CompilationState
.ModuleBuilderOpt is { } moduleBuilder)
404
if (_factory.
CompilationState
.Compilation.ShouldEmitNullableAttributes(localFunction))
1130
_factory.
CompilationState
.ModuleBuilderOpt?.EnsureIsReadOnlyAttributeExists();
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
686
Debug.Assert(factory.
CompilationState
.ModuleBuilderOpt is { });
691
int generation = factory.
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal;
785
Debug.Assert(_factory.
CompilationState
.ModuleBuilderOpt is { });
786
int generation = _factory.
CompilationState
.ModuleBuilderOpt.CurrentGenerationOrdinal;
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
113
: base(slotAllocatorOpt, F.
CompilationState
, diagnostics)
Lowering\SyntheticBoundNodeFactory.cs (6)
44
public CSharpCompilation Compilation { get { return
CompilationState
.Compilation; } }
46
public PEModuleBuilder? ModuleBuilderOpt { get { return
CompilationState
.ModuleBuilderOpt; } }
577
CompilationState
.AddSynthesizedMethod(CurrentFunction, body);
1286
Debug.Assert(this.
CompilationState
is { DynamicOperationContextType: { } });
1287
return Typeof(this.
CompilationState
.DynamicOperationContextType, WellKnownType(CodeAnalysis.WellKnownType.System_Type));
1403
method = method.GetConstructedLeastOverriddenMethod(this.
CompilationState
.Type, requireSameReturnType: true);