Open yjbanov opened 9 years ago
/sub
Mhpf. Done already, but now this causes dartanalyzer warnings for unused imports :-(
@mprobst Now you need to strip the imports. :smile:
Actually handling the unused imports is not feasible at the moment as we don't have precise type information available to detect used and unused imports. So let's just include these in the output for now, and revisit this once we're fully migrated to TypeScript.
Maybe it's easiest to just ignore warnings from the dart analyzer - after all, this is just generated code, and the imports will be dropped by later stages during compilation.
They pollute Dart code. Example:
This:
Transpiles to this:
(@FINAL is removed but still imported unnecessarily)