dart-lang / source_gen

Automatic source code generation for Dart
https://pub.dev/packages/source_gen
BSD 3-Clause "New" or "Revised" License
482 stars 104 forks source link

Could non-build-related utilities be extracted to a separate package? #674

Open rrousselGit opened 1 year ago

rrousselGit commented 1 year ago

Hello!

I was wondering if it was possible to extract various analyzer-based utils. They aren't tied to build, but are useful for quite a lot of analyzer projects.

For example, I was thinking of:

I find myself commonly having to fork those utils out of source_gen when I'm working on an analyzer-based project that doesn't use code generation (such as linters)

I don't mind making such package myself. But I figured I'd ask first about an official stance on the topic.