We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65c7235 + f6a7e09 commit 0c3907fCopy full SHA for 0c3907f
src/Tools/MetricsOutputWriter.cs
@@ -69,7 +69,7 @@ void writeHeader()
69
case SymbolKind.Property:
70
var location = data.Symbol.Locations.First();
71
writer.WriteAttributeString("Name", data.Symbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
72
- writer.WriteAttributeString("File", location.SourceTree.FilePath);
+ writer.WriteAttributeString("File", location.SourceTree?.FilePath ?? "UNKNOWN");
73
writer.WriteAttributeString("Line", (location.GetLineSpan().StartLinePosition.Line + 1).ToString());
74
break;
75
0 commit comments