20 instantiations of SourceOrAdditionalFile
Microsoft.CodeAnalysis (20)
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 (2)
746
var file = new
SourceOrAdditionalFile
(tree);
777
var file = new
SourceOrAdditionalFile
(additionalFile);
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 (12)
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);
524
return await GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(file), Analyzers, filterSpan: null, cancellationToken).ConfigureAwait(false);
540
return await GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(file), analyzers, filterSpan: null, cancellationToken).ConfigureAwait(false);
556
return await GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(file), Analyzers, filterSpan, cancellationToken).ConfigureAwait(false);
574
return await GetAnalysisResultCoreAsync(new
SourceOrAdditionalFile
(file), analyzers, filterSpan, cancellationToken).ConfigureAwait(false);
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);
33 references to SourceOrAdditionalFile
Microsoft.CodeAnalysis (33)
DiagnosticAnalyzer\AnalysisContextInfo.cs (3)
19
private readonly
SourceOrAdditionalFile
? _file;
37
public AnalysisContextInfo(Compilation compilation,
SourceOrAdditionalFile
file) :
61
SourceOrAdditionalFile
? file,
DiagnosticAnalyzer\AnalysisResultBuilder.cs (3)
104
private HashSet<DiagnosticAnalyzer>? GetCompletedAnalyzersForFile_NoLock(
SourceOrAdditionalFile
filterFile, bool syntax)
129
private void AddCompletedAnalyzerForFile_NoLock(
SourceOrAdditionalFile
filterFile, bool syntax, DiagnosticAnalyzer analyzer)
159
public ImmutableArray<DiagnosticAnalyzer> GetPendingAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, (
SourceOrAdditionalFile
file, bool syntax)? filterScope)
DiagnosticAnalyzer\AnalysisScope.cs (9)
25
public
SourceOrAdditionalFile
? FilterFileOpt { get; }
37
public
SourceOrAdditionalFile
? OriginalFilterFile { get; }
118
public static AnalysisScope Create(ImmutableArray<DiagnosticAnalyzer> analyzers,
SourceOrAdditionalFile
filterFile, TextSpan? filterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers)
121
public static AnalysisScope Create(ImmutableArray<DiagnosticAnalyzer> analyzers,
SourceOrAdditionalFile
filterFile, TextSpan? filterSpan,
SourceOrAdditionalFile
originalFilterFile, TextSpan? originalFilterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers)
135
SourceOrAdditionalFile
? filterFile,
137
SourceOrAdditionalFile
? originalFilterFile,
158
private static TextSpan? GetEffectiveFilterSpan(TextSpan? filterSpan,
SourceOrAdditionalFile
? filterFile)
299
var
filterFile = FilterFileOpt.GetValueOrDefault();
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
746
var
file = new SourceOrAdditionalFile(tree);
777
var
file = new SourceOrAdditionalFile(additionalFile);
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (2)
28
SourceOrAdditionalFile
contextFile,
68
private
SourceOrAdditionalFile
? _contextFile;
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
560
SourceOrAdditionalFile
file,
607
SourceOrAdditionalFile
file,
1458
private AnalyzerDiagnosticReporter GetAddSyntaxDiagnostic(
SourceOrAdditionalFile
file, DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (4)
577
private async Task<AnalysisResult> GetAnalysisResultCoreAsync(
SourceOrAdditionalFile
file, ImmutableArray<DiagnosticAnalyzer> analyzers, TextSpan? filterSpan, CancellationToken cancellationToken)
876
SourceOrAdditionalFile
originalFile,
939
var
file = new SourceOrAdditionalFile(partialTree);
972
(
SourceOrAdditionalFile
file, bool syntax)? filterScope = analysisScope.FilterFileOpt.HasValue ?
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (7)
16
: IEquatable<
SourceOrAdditionalFile
>
34
=> obj is
SourceOrAdditionalFile
file && Equals(file);
36
public bool Equals(
SourceOrAdditionalFile
other)
39
public static bool operator ==(
SourceOrAdditionalFile
left,
SourceOrAdditionalFile
right)
42
public static bool operator !=(
SourceOrAdditionalFile
left,
SourceOrAdditionalFile
right)