Query/MQ: consider making ExpressionPrinter static #29851
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
Currently the printer is instance based, since it has some state that it needs to property print the expression (e.g. list of encountered variable names so that it can generate unique ones when needed). We could consider making it static, so that it's easier to use. Would have to ditch the visitor pattern, and flow the state between our own "visit" methods. Uglier code to write but easier to use.
The text was updated successfully, but these errors were encountered: