1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Compiler\MethodCompiler.cs (1)
95_compilation = compilation;
28 references to _compilation
Microsoft.CodeAnalysis.CSharp (28)
Compiler\MethodCompiler.cs (28)
374if (_compilation.Options.ConcurrentBuild) 420if (_compilation.Options.ConcurrentBuild) 450var compilationState = new TypeCompilationState(containingType, _compilation, _moduleBeingBuiltOpt); 473var synthesizedSubmissionFields = containingType.IsSubmissionClass ? new SynthesizedSubmissionFields(_compilation, containingType) : null; 482Binder.BindFieldInitializers(_compilation, scriptInitializer, sourceTypeSymbol.StaticInitializers, _diagnostics, ref processedStaticInitializers); 485Binder.BindFieldInitializers(_compilation, scriptInitializer, sourceTypeSymbol.InstanceInitializers, _diagnostics, ref processedInstanceInitializers); 617_compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion() && 622this._compilation, 669var compilationState = new TypeCompilationState(null, _compilation, _moduleBeingBuiltOpt); 691var compilationState = new TypeCompilationState(additionalType, _compilation, _moduleBeingBuiltOpt); 904if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) 906_compilation.SymbolDeclaredEvent(methodSymbol); 979_compilation, 991DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, initializerStatements, unusedDiagnostics, out _, requireOutParamsAssigned: false); 992DiagnosticsPass.IssueDiagnostics(_compilation, initializerStatements, BindingDiagnosticBag.Discarded, methodSymbol); 1006RefSafetyAnalysis.Analyze(_compilation, methodSymbol, 1051DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, out _, requireOutParamsAssigned: false); 1069DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, out _, requireOutParamsAssigned: false); 1070DiagnosticsPass.IssueDiagnostics(_compilation, analyzedInitializers, diagsForCurrentMethod, methodSymbol); 1096DiagnosticsPass.IssueDiagnostics(_compilation, body, diagsForCurrentMethod, methodSymbol); 1114_compilation.RegisterPossibleUpcomingEventEnqueue(); 1121if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) 1128_compilation.SemanticModelProvider is CachingSemanticModelProvider cachingSemanticModelProvider) 1131semanticModelWithCachedBoundNodes = (SyntaxTreeSemanticModel)cachingSemanticModelProvider.GetSemanticModel(syntax.SyntaxTree, _compilation); 1142_compilation.EventQueue.TryEnqueue(new SymbolDeclaredCompilationEvent( 1143_compilation, methodSymbol, semanticModelWithCachedBoundNodes)); 1148_compilation.UnregisterPossibleUpcomingEventEnqueue(); 1221boundStatements = MethodBodySynthesizer.ConstructScriptConstructorBody(loweredBodyOpt, methodSymbol, previousSubmissionFields, _compilation);