importLibraryElement abstract method

ImportLibraryElementResult importLibraryElement(
  1. Uri uri
)

Ensure that the library with the given uri is imported.

If there is already an import for the requested library, return the import prefix of the existing import directive.

If there is no existing import, a new import is added.

Implementation

ImportLibraryElementResult importLibraryElement(Uri uri);