google / json_serializable.dart

Generates utilities to aid in serializing to/from JSON.
https://pub.dev/packages/json_serializable
BSD 3-Clause "New" or "Revised" License
1.55k stars 397 forks source link

support 'as' prefixes for libs #1360

Open subzero911 opened 12 months ago

subzero911 commented 12 months ago

I import a helper library with "as" prefix

image

And use it in annotations:

image

Generated code contains an error:

image
kevmoo commented 12 months ago

Yup! An old issue. It's gnarly because it touches a LOT of code!

woprandi commented 4 months ago

It seems to be a common issue for any code generator

kevmoo commented 3 months ago

Yep! Tracking prefixing is tricky!