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