Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #87 from alexarchambault/topic/merge-upstream
Browse files Browse the repository at this point in the history
Merge latest upstream developments
  • Loading branch information
alexarchambault committed May 30, 2017
2 parents 9f67d0e + 38ecd79 commit ca2d67d
Show file tree
Hide file tree
Showing 91 changed files with 2,947 additions and 2,115 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ammonite.interp

import ammonite.util.{ImportData, Name}
import ammonite.util.{ImportData, Name, Util}

import scala.reflect.NameTransformer
import scala.tools.nsc._
Expand Down Expand Up @@ -220,7 +220,7 @@ object AmmonitePlugin{
// together v.s. having them by sent in the arbitrary-jumbled order they
// come out of the `grouped` map in

output(open.toVector.sortBy(_.prefix.map(_.backticked).mkString(".")))
output(open.toVector.sortBy(x => Util.encodeScalaSourcePath(x.prefix)))
}
}

Expand Down
2 changes: 1 addition & 1 deletion amm/interp/src/main/scala/ammonite/interp/Compiler.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ammonite.interp

import acyclic.file

import ammonite.runtime.Evaluator
import ammonite.util.{ImportData, Imports, Printer}
import ammonite.util.Util.newLine
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
package ammonite.runtime
package ammonite.interp

import ammonite.ops._
import ammonite.runtime.tools.Resolver
import ammonite.util.Ref
import acyclic.file
import scala.util.control.ControlThrowable

import ammonite.runtime.APIHolder
import ammonite.runtime.Evaluator.AmmoniteExit

object InterpBridge extends APIHolder[InterpAPI]
import scala.collection.mutable
import scala.util.control.ControlThrowable

/**
* Thrown to exit the REPL cleanly
*/
case class ReplExit(value: Any) extends ControlThrowable

object InterpBridge extends APIHolder[InterpAPI]

trait InterpAPI {

Expand All @@ -27,6 +25,12 @@ trait InterpAPI {
*/
def repositories: Ref[List[Resolver]]

/**
* Configures the current compiler, or if the compiler hasn't been initialized
* yet, registers the configuration callback and applies it to the compiler
* when it ends up being initialized later
*/
def configureCompiler(c: scala.tools.nsc.Global => Unit): Unit
}


Expand Down
Loading

0 comments on commit ca2d67d

Please sign in to comment.