Open dslmeinte opened 2 months ago
At first sight this looks harder than just using a (text) template. But maybe first sight is misleading :-).
Two advantages of this approach is that we're already using an intermediate representation, and that potentially things like cross-file imports could become a bit easier.
See e.g.: https://nabeelvalley.co.za/docs/javascript/typescript-ast/
This might also be useful to make pluggable code generators, e.g. generating code specifically for Freon.
Is it possible to use a
ParseExpression
feature like Roslyn has?