1 write to Compilation
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
150
Compilation
= compilation;
39 references to Compilation
Microsoft.CodeAnalysis (39)
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
423
_lazyGeneratedCodeAttribute = analyzerExecutor.
Compilation
?.GetTypeByMetadataName("System.CodeDom.Compiler.GeneratedCodeAttribute");
931
var effectiveSeverities = GetEffectiveSeverities(descriptor, AnalyzerExecutor.
Compilation
, AnalyzerExecutor.AnalyzerOptions, cancellationToken);
1003
=> GetOrCreateSemanticModel(tree, AnalyzerExecutor.
Compilation
);
1393
var configuredSeverity = descriptor.GetEffectiveSeverity(AnalyzerExecutor.
Compilation
.Options);
2035
if (!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.
Compilation
.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken))
2235
Debug.Assert(!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.
Compilation
.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken));
2260
Debug.Assert(!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.
Compilation
.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken));
DiagnosticAnalyzer\AnalyzerExecutor.cs (29)
63
return _isAnalyzerSuppressedForTree(analyzer, tree,
Compilation
.Options.SyntaxTreeOptionsProvider, cancellationToken);
226
Compilation
, AnalyzerOptions, _compilationAnalysisValueProviderFactory, cancellationToken);
232
new AnalysisContextInfo(
Compilation
),
266
symbol,
Compilation
, AnalyzerOptions, isGeneratedCodeSymbol, filterTree, filterSpan, cancellationToken);
272
new AnalysisContextInfo(
Compilation
, symbol),
297
var context = new SuppressionAnalysisContext(
Compilation
, AnalyzerOptions,
304
new AnalysisContextInfo(
Compilation
),
332
Compilation
, AnalyzerOptions, addDiagnostic,
339
new AnalysisContextInfo(
Compilation
),
386
var context = new SymbolAnalysisContext(symbol,
Compilation
, AnalyzerOptions, addDiagnostic,
393
new AnalysisContextInfo(
Compilation
, symbol),
488
var context = new SymbolAnalysisContext(symbol,
Compilation
, AnalyzerOptions, addDiagnostic,
495
new AnalysisContextInfo(
Compilation
, symbol),
582
var context = new SyntaxTreeAnalysisContext(tree, AnalyzerOptions, diagReporter.AddDiagnosticAction, isSupportedDiagnostic,
Compilation
, filterSpan, isGeneratedCode, cancellationToken);
589
new AnalysisContextInfo(
Compilation
, file),
621
var context = new AdditionalFileAnalysisContext(additionalFile, AnalyzerOptions, diagReporter.AddDiagnosticAction, isSupportedDiagnostic,
Compilation
, filterSpan, cancellationToken);
628
new AnalysisContextInfo(
Compilation
, file),
657
new AnalysisContextInfo(
Compilation
, node),
681
new AnalysisContextInfo(
Compilation
, operation),
813
new AnalysisContextInfo(
Compilation
, declaredSymbol, declaredNode),
836
new AnalysisContextInfo(
Compilation
, declaredSymbol),
900
new AnalysisContextInfo(
Compilation
, declaredSymbol, declaredNode),
915
new AnalysisContextInfo(
Compilation
, declaredSymbol),
1192
if (!this.
Compilation
.CatchAnalyzerExceptions)
1371
return GetAddDiagnostic(contextSymbol, cachedDeclaringReferences,
Compilation
, analyzer, _addNonCategorizedDiagnostic,
1428
if (_shouldSuppressGeneratedCodeDiagnostic(diagnostic, analyzer,
Compilation
, cancellationToken))
1446
return AnalyzerDiagnosticReporter.GetInstance(new SourceOrAdditionalFile(tree), span: null,
Compilation
, analyzer, isSyntaxDiagnostic: false,
1453
return AnalyzerDiagnosticReporter.GetInstance(new SourceOrAdditionalFile(tree), span,
Compilation
, analyzer, isSyntaxDiagnostic: false,
1460
return AnalyzerDiagnosticReporter.GetInstance(file, span: null,
Compilation
, analyzer, isSyntaxDiagnostic: true,
DiagnosticAnalyzer\AnalyzerManager.cs (3)
171
if (sessionScope.GetAnalyzerActions().CompilationStartActionsCount > 0 && analyzerExecutor.
Compilation
!= null)
317
if (analyzerExecutor.
Compilation
.Options.SyntaxTreeOptionsProvider is { } treeOptions)
323
analyzerExecutor.AnalyzerOptions.TryGetSeverityFromBulkConfiguration(tree, analyzerExecutor.
Compilation
, descriptor, cancellationToken, out configuredValue))