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); 688var compilationState = new TypeCompilationState(additionalType, _compilation, _moduleBeingBuiltOpt); 901if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) 903_compilation.SymbolDeclaredEvent(methodSymbol); 976_compilation, 988DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, initializerStatements, unusedDiagnostics, out _, requireOutParamsAssigned: false); 989DiagnosticsPass.IssueDiagnostics(_compilation, initializerStatements, BindingDiagnosticBag.Discarded, methodSymbol); 1003RefSafetyAnalysis.Analyze(_compilation, methodSymbol, 1048DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, out _, requireOutParamsAssigned: false); 1066DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, out _, requireOutParamsAssigned: false); 1067DiagnosticsPass.IssueDiagnostics(_compilation, analyzedInitializers, diagsForCurrentMethod, methodSymbol); 1093DiagnosticsPass.IssueDiagnostics(_compilation, body, diagsForCurrentMethod, methodSymbol); 1111_compilation.RegisterPossibleUpcomingEventEnqueue(); 1118if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) 1125_compilation.SemanticModelProvider is CachingSemanticModelProvider cachingSemanticModelProvider) 1128semanticModelWithCachedBoundNodes = (SyntaxTreeSemanticModel)cachingSemanticModelProvider.GetSemanticModel(syntax.SyntaxTree, _compilation); 1139_compilation.EventQueue.TryEnqueue(new SymbolDeclaredCompilationEvent( 1140_compilation, methodSymbol, semanticModelWithCachedBoundNodes)); 1145_compilation.UnregisterPossibleUpcomingEventEnqueue(); 1218boundStatements = MethodBodySynthesizer.ConstructScriptConstructorBody(loweredBodyOpt, methodSymbol, previousSubmissionFields, _compilation);