1 write to _file
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisContextInfo.cs (1)
70
_file
= file;
8 references to _file
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalysisContextInfo.cs (8)
93
if (
_file
.HasValue)
95
if (
_file
.Value.SourceTree != null)
97
sb.AppendLine($"{nameof(SyntaxTree)}: {
_file
.Value.SourceTree.FilePath}");
101
RoslynDebug.Assert(
_file
.Value.AdditionalFile != null);
102
sb.AppendLine($"{nameof(AdditionalText)}: {
_file
.Value.AdditionalFile.Path}");
108
RoslynDebug.Assert(
_file
.HasValue);
109
RoslynDebug.Assert(
_file
.Value.SourceTree != null);
111
var text =
_file
.Value.SourceTree.GetText();