1 write to Compilation
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
169
Compilation
= compilation;
41 references to Compilation
Microsoft.CodeAnalysis (41)
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
426
_lazyGeneratedCodeAttribute = analyzerExecutor.
Compilation
?.GetTypeByMetadataName("System.CodeDom.Compiler.GeneratedCodeAttribute");
941
var effectiveSeverities = GetEffectiveSeverities(descriptor, AnalyzerExecutor.
Compilation
, AnalyzerExecutor.AnalyzerOptions, cancellationToken);
1013
=> GetOrCreateSemanticModel(tree, AnalyzerExecutor.
Compilation
);
1403
var configuredSeverity = descriptor.GetEffectiveSeverity(AnalyzerExecutor.
Compilation
.Options);
2057
if (!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.
Compilation
.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken))
2262
Debug.Assert(!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.
Compilation
.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken));
2287
Debug.Assert(!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.
Compilation
.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken));
DiagnosticAnalyzer\AnalyzerExecutor.cs (31)
74
return _isAnalyzerSuppressedForTree(analyzer, tree,
Compilation
.Options.SyntaxTreeOptionsProvider, cancellationToken);
272
Compilation
, AnalyzerOptions, _compilationAnalysisValueProviderFactory, cancellationToken);
273
var contextInfo = new AnalysisContextInfo(
Compilation
);
334
symbol,
Compilation
, AnalyzerOptions, isGeneratedCodeSymbol, filterTree, filterSpan, cancellationToken);
335
var contextInfo = new AnalysisContextInfo(
Compilation
, symbol);
379
var context = new SuppressionAnalysisContext(
Compilation
, options,
386
new AnalysisContextInfo(
Compilation
),
416
Compilation
, analyzerOptions, addDiagnostic,
418
var contextInfo = new AnalysisContextInfo(
Compilation
);
479
symbol,
Compilation
, analyzerOptions, addDiagnostic,
482
var contextInfo = new AnalysisContextInfo(
Compilation
, symbol);
598
symbol,
Compilation
, analyzerOptions, addDiagnostic,
600
var contextInfo = new AnalysisContextInfo(
Compilation
, symbol);
709
Compilation
, filterSpan, isGeneratedCode, cancellationToken);
710
var contextInfo = new AnalysisContextInfo(
Compilation
, file);
759
Compilation
, filterSpan, cancellationToken);
760
var contextInfo = new AnalysisContextInfo(
Compilation
, file);
799
new AnalysisContextInfo(
Compilation
, node),
823
new AnalysisContextInfo(
Compilation
, operation),
888
new AnalysisContextInfo(@this.
Compilation
, executionData.DeclaredSymbol, declaredNode),
945
new AnalysisContextInfo(@this.
Compilation
, executionData.DeclaredSymbol, declaredNode),
1000
new AnalysisContextInfo(@this.
Compilation
, executionData.DeclaredSymbol),
1022
var context = new OperationBlockAnalysisContext(operationBlocks, executionData.DeclaredSymbol, @this.
Compilation
,
1032
new AnalysisContextInfo(@this.
Compilation
, executionData.DeclaredSymbol),
1384
if (!this.
Compilation
.CatchAnalyzerExceptions)
1569
if (_shouldSuppressGeneratedCodeDiagnostic(diagnostic, analyzer, this.
Compilation
, cancellationToken))
1591
var syntax = getTopMostNodeForAnalysis(symbol, syntaxRef, this.
Compilation
, cancellationToken);
1611
if (_shouldSuppressGeneratedCodeDiagnostic(diagnostic, analyzer,
Compilation
, cancellationToken))
1634
new SourceOrAdditionalFile(tree), span: null,
Compilation
, analyzer, analyzerOptions, isSyntaxDiagnostic: false,
1647
new SourceOrAdditionalFile(tree), span,
Compilation
, analyzer, analyzerOptions, isSyntaxDiagnostic: false,
1659
file, span: null,
Compilation
, analyzer, analyzerOptions, isSyntaxDiagnostic: true,
DiagnosticAnalyzer\AnalyzerManager.cs (3)
172
if (sessionScope.GetAnalyzerActions().CompilationStartActionsCount > 0 && analyzerExecutor.
Compilation
!= null)
318
if (analyzerExecutor.
Compilation
.Options.SyntaxTreeOptionsProvider is { } treeOptions)
324
analyzerExecutor.AnalyzerOptions.TryGetSeverityFromBulkConfiguration(tree, analyzerExecutor.
Compilation
, descriptor, cancellationToken, out configuredValue))