1 write to AdditionalFiles
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerOptions.cs (1)
41AdditionalFiles = additionalFiles.NullToEmpty();
28 references to AdditionalFiles
Microsoft.Analyzers.Local (1)
ApiLifecycle\ModelLoader.cs (1)
22var files = context.Options.AdditionalFiles;
Microsoft.CodeAnalysis (13)
DiagnosticAnalyzer\AnalysisScope.cs (1)
111var additionalFiles = analyzerOptions?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty;
DiagnosticAnalyzer\AnalyzerOptions.cs (6)
58if (this.AdditionalFiles == additionalFiles) 75(this.AdditionalFiles == other.AdditionalFiles || 76this.AdditionalFiles.SequenceEqual(other.AdditionalFiles, ReferenceEquals)); 81return Hash.CombineValues(this.AdditionalFiles);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (6)
107_analysisResultBuilder = new AnalysisResultBuilder(analysisOptions.LogAnalyzerExecutionTime, analyzers, _analysisOptions.Options?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty); 227private ImmutableArray<AdditionalText> AdditionalFiles => _analysisOptions.Options?.AdditionalFiles ?? ImmutableArray<AdditionalText>.Empty; 515/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 529/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 546/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 562/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance.
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
82For Each item In options.AdditionalFiles
Diagnostics\DiagnosticServiceTests.vb (1)
1458Dim additionalFileText = compilationContext.Options.AdditionalFiles.Single().GetText().ToString()
Microsoft.CodeAnalysis.Test.Utilities (5)
Diagnostics\OptionsDiagnosticAnalyzer.cs (5)
50if (actual.AdditionalFiles.Length != expected.AdditionalFiles.Length) 55for (int i = 0; i < actual.AdditionalFiles.Length; i++) 57if (actual.AdditionalFiles[i].Path != expected.AdditionalFiles[i].Path)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
11119For Each additionalFile In context.Options.AdditionalFiles 11124ReportDiagnostic(context.Options.AdditionalFiles.First().Path, context, New TextSpan(0, 1000000)) ' Overflow span
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DocumentAnalysisScope.cs (1)
59return TextDocument.Project.AnalyzerOptions.AdditionalFiles.First(a => PathUtilities.Comparer.Equals(a.Path, filePath));
Microsoft.DotNet.CodeAnalysis (4)
Analyzers\BaseAnalyzer.cs (1)
23var configFile = context.Options.AdditionalFiles.FirstOrDefault(file => file.Path.Contains(ConfigFileName));
Analyzers\MembersMustExistAnalyzer.cs (1)
48var additionalAnalyzerFiles = context.Options.AdditionalFiles.Where(af => af.Path.IndexOf(s_analyzerName, 0, StringComparison.OrdinalIgnoreCase) >= 0);
Analyzers\PinvokeAnalyzer.cs (2)
30_allowedPinvokeFile = obj.Options.AdditionalFiles.FirstOrDefault(f => Path.GetFileName(f.Path).IndexOf("PinvokeAnalyzer_", StringComparison.OrdinalIgnoreCase) >= 0); 31_exceptionFile = obj.Options.AdditionalFiles.FirstOrDefault(f => Path.GetFileName(f.Path).IndexOf("PinvokeAnalyzerExceptionList.analyzerdata", StringComparison.OrdinalIgnoreCase) >= 0);