imports property

  1. @override
Iterable<Directive> get imports

All imports that have so far been added implicitly via allocate.

As a special case, imports of package:fixnum/src/* are changed to refer to the public package:fixnum/fixnum.dart. Version 1.2.0 of the package introduces platform-specific implementation libraries that must not be imported directly.

Implementation

@override
Iterable<Directive> get imports =>
    _imports.keys.map((u) => Directive.import(u, as: '_i${_imports[u]}'));