scala.tools.nsc.interpreter.Imports
(computedImports: StringAdd).self
(computedImports: StringFormat).self
(computedImports: ArrowAssoc[IMain.ComputedImports]).x
(Since version 2.10.0) Use leftOfArrow
instead
(computedImports: Ensuring[IMain.ComputedImports]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Compute imports that allow definitions from previous requests to be visible in a new request. Returns three pieces of related code:
2. A code fragment that should go after the code of the new request.
3. An access path which can be traversed to access any bindings inside code wrapped by #1 and #2 .
The argument is a set of Names that need to be imported.
Limitations: This method is not as precise as it could be. (1) It does not process wildcard imports to see what exactly they import. (2) If it imports any names from a request, it imports all of them, which is not really necessary. (3) It imports multiple same-named implicits, but only the last one imported is actually usable.