You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's quite painful having to type out parse-tree expressions for a test-case (and eventually probably other things too). We should ship a tool that can dump Draco code as a syntax tree expression, similarly to Roslyn-quoter. For now it's enough if it only supports C# as the target language. I suggest using Scriban templates, so eventually when we do want Draco code to be emitted, we can do that.
The tool can be built into the compiler as a command or as a separate CLI tool. It would be nice to be able to ship this with the playground as well.
The text was updated successfully, but these errors were encountered:
@Kuinox It would probably lie in the language server itself as a custom command or something, but the functionality itself should come from the core compiler itself, as it's the thing knowing the syntax tree API
It's quite painful having to type out parse-tree expressions for a test-case (and eventually probably other things too). We should ship a tool that can dump Draco code as a syntax tree expression, similarly to Roslyn-quoter. For now it's enough if it only supports C# as the target language. I suggest using Scriban templates, so eventually when we do want Draco code to be emitted, we can do that.
The tool can be built into the compiler as a command or as a separate CLI tool. It would be nice to be able to ship this with the playground as well.
The text was updated successfully, but these errors were encountered: