Fix XML comment processing

This commit is contained in:
Tamas Vajk
2021-02-03 11:01:16 +01:00
parent d3244fe298
commit 7068a265a6
2 changed files with 1 additions and 5 deletions

View File

@@ -393,7 +393,7 @@ namespace Semmle.Extraction.CSharp
}
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions]
{
extractor.Message(new Message("Unhandled exception processing syntax tree", tree.FilePath, null, ex.StackTrace));
extractor.Message(new Message($"Unhandled exception processing syntax tree. {ex.Message}", tree.FilePath, null, ex.StackTrace));
}
}

View File

@@ -117,10 +117,6 @@ namespace Semmle.Extraction.CSharp.Populators
currentLocation = nextLineLocation;
}
break;
// Strangely, these are reported as SingleLineCommentTrivia.
case SyntaxKind.DocumentationCommentExteriorTrivia:
cx.ModelError($"Unhandled comment type {trivia.Kind()} for {trivia}");
break;
}
}
}