15 references to SourceOrAdditionalFile
Microsoft.CodeAnalysis (15)
DiagnosticAnalyzer\AnalysisContextInfo.cs (4)
28
this(model.Compilation, new
SourceOrAdditionalFile
(model.SyntaxTree))
43
this(compilation: compilation, operation: null, symbol: null, file: new
SourceOrAdditionalFile
(node.SyntaxTree), node)
48
this(compilation: compilation, operation: operation, symbol: null, file: new
SourceOrAdditionalFile
(operation.Syntax.SyntaxTree), node: operation.Syntax)
53
this(compilation: compilation, operation: null, symbol: symbol, file: new
SourceOrAdditionalFile
(node.SyntaxTree), node)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
746
var file = new
SourceOrAdditionalFile
(tree);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
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,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (8)
463
return GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(tree), Analyzers, filterSpan: null, cancellationToken);
478
return GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(tree), Analyzers, filterSpan, cancellationToken);
493
return GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(tree), analyzers, filterSpan: null, cancellationToken);
510
return GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(tree), analyzers, filterSpan, cancellationToken);
586
var analysisScope = AnalysisScope.Create(analyzers, new
SourceOrAdditionalFile
(tree), filterSpan, isSyntacticSingleFileAnalysis: true, this);
653
var analysisScope = AnalysisScope.Create(analyzers, new
SourceOrAdditionalFile
(model.SyntaxTree), filterSpan, isSyntacticSingleFileAnalysis: false, this);
660
var analysisScope = AnalysisScope.Create(analyzers, new
SourceOrAdditionalFile
(model.SyntaxTree), filterSpan, isSyntacticSingleFileAnalysis: false, this);
939
var file = new
SourceOrAdditionalFile
(partialTree);