I'm trying to convert a project over from SqlParser, because SqlParser lacks support for some things I'm trying to parse and it doesn't have source available. But I've hit a roadblock: SqlScriptDom doesn't have anything analogous to ISqlCodeObjectVisitor<T>, which allows you to create visitors where every Visit() method returns T rather than void. It's incredibly useful for things like parsing expressions.
Would it be possible to add a typed visitor to SqlScriptDom?
I'm trying to convert a project over from SqlParser, because SqlParser lacks support for some things I'm trying to parse and it doesn't have source available. But I've hit a roadblock: SqlScriptDom doesn't have anything analogous to
ISqlCodeObjectVisitor<T>, which allows you to create visitors where everyVisit()method returnsTrather thanvoid. It's incredibly useful for things like parsing expressions.Would it be possible to add a typed visitor to SqlScriptDom?