dart-lang / code_builder

A fluent API for generating valid Dart source code
https://pub.dev/packages/code_builder
BSD 3-Clause "New" or "Revised" License
423 stars 66 forks source link

Reverse conversion: Dart syntax into code_builder syntax #424

Open lukehutch opened 1 year ago

lukehutch commented 1 year ago

Is there a way to convert a Dart code snippet into code_builder syntax? It would be significantly easier to write code_builder code if you could write a Dart example of the sort of thing you want to build with code_builder, and be shown code_builder code that would generate the Dart code.