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

Add a `node` to `InvalidGenerationSourceError` #670

Closed natebosch closed 1 year ago

natebosch commented 1 year ago

Allow attempting to find the source location from an AstNode as an alternative to finding it from an Element.