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