1 write to AdditionalFile
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1630AdditionalFile = additionalFile;
13 references to AdditionalFile
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (3)
1605/// Optional filter span within the <see cref="AdditionalFile"/> for which to compute diagnostics. 1606/// <see langword="null"/> if we are analyzing the entire <see cref="AdditionalFile"/> 1640/// Report a diagnostic for the given <see cref="AdditionalFile"/>.
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (2)
922var text = context.AdditionalFile.GetText(context.CancellationToken); 927var location = Location.Create(context.AdditionalFile.Path, span, text.Lines.GetLinePositionSpan(span));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
139location: Location.Create(context.AdditionalFile.Path, Text.TextSpan.FromBounds(0, 0), new Text.LinePositionSpan(new Text.LinePosition(0, 0), new Text.LinePosition(0, 0))), "args"));
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\CommonDiagnosticAnalyzers.cs (4)
2654if (context.AdditionalFile.Path == null) 2659var text = context.AdditionalFile.GetText(); 2660var location = Location.Create(context.AdditionalFile.Path, _diagnosticSpan, text.Lines.GetLinePositionSpan(_diagnosticSpan)); 3114CallbackFilterFile = context.AdditionalFile;
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
82c.RegisterAdditionalFileAction(b => ThrowIfMatch(nameof(c.RegisterAdditionalFileAction), new AnalysisContextInfo(b.Compilation, new SourceOrAdditionalFile(b.AdditionalFile))));
System.Windows.Forms.Analyzers (2)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (2)
30if (context.AdditionalFile.Path.EndsWith(".manifest", StringComparison.OrdinalIgnoreCase)) 32VerifyAppManifest(context, context.AdditionalFile);