Anybody here understand Roslyn syntax trees? Not sure how to convert a SkippedTokensTriviaSyntax to a SyntaxTrivia:
https://github.com/KirillOsenkov/XmlParser/issues/59

I can ask the compiler team next week, but maybe someone can answer this off the cuff.

I lifted the XML parser from old Roslyn VB parser circa 2014, so things have changed, and I never really understood some of this.

Double closing slash creates null trivia · Issue #59 · KirillOsenkov/XmlParser

The following XML: "<a><b><//b></a>" Creates a root element with leading trivia containing null (which incidentally seems to break the VS debugger ;) )

GitHub
@KirillOsenkov I can barely remember this but I wrote the xml parser for Roslyn doc comments in 2010. I suppose nothing is left of it by now. But what a nightmare, interleaving fragments of two languages that have different lexical grammars.
@cjburrows yeah I remember thinking "how hard could it be to parse XML?" boy was I wrong. I took the part of the VB parser that parsed XML literals and ported it to C# using Anthony's VBtoCSConverter and cleaned it up to make it standalone.