summaryrefslogtreecommitdiff
path: root/main/src/mill/main/ReplApplyHandler.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2018-09-15 03:49:33 +0200
committerLi Haoyi <haoyi.sg@gmail.com>2018-09-15 09:49:33 +0800
commitbe441e786ead9cc251418856189751b3e51d325e (patch)
treef208233923315690d4750c5ae6f1bf8731ff4d45 /main/src/mill/main/ReplApplyHandler.scala
parentfc86e68cb3ae31d1cd1b07df9665d34cf617954d (diff)
downloadmill-be441e786ead9cc251418856189751b3e51d325e.tar.gz
mill-be441e786ead9cc251418856189751b3e51d325e.tar.bz2
mill-be441e786ead9cc251418856189751b3e51d325e.zip
Remove useless type parameters for {Test,}Evaluator (#416)
* Remove useless type parameters for {Test,}Evaluator * Update Evaluator.scala
Diffstat (limited to 'main/src/mill/main/ReplApplyHandler.scala')
-rw-r--r--main/src/mill/main/ReplApplyHandler.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/mill/main/ReplApplyHandler.scala b/main/src/mill/main/ReplApplyHandler.scala
index 9070e614..c40b82c9 100644
--- a/main/src/mill/main/ReplApplyHandler.scala
+++ b/main/src/mill/main/ReplApplyHandler.scala
@@ -35,7 +35,7 @@ object ReplApplyHandler{
)
)
}
- def pprintCross(c: mill.define.Cross[_], evaluator: Evaluator[_]) = {
+ def pprintCross(c: mill.define.Cross[_], evaluator: Evaluator) = {
pprint.Tree.Lazy( ctx =>
Iterator(c.millOuterCtx.enclosing , ":", c.millOuterCtx.lineNum.toString, ctx.applyPrefixColor("\nChildren:").toString) ++
c.items.iterator.map(x =>
@@ -43,7 +43,7 @@ object ReplApplyHandler{
)
)
}
- def pprintModule(m: mill.define.Module, evaluator: Evaluator[_]) = {
+ def pprintModule(m: mill.define.Module, evaluator: Evaluator) = {
pprint.Tree.Lazy( ctx =>
Iterator(m.millInternal.millModuleEnclosing, ":", m.millInternal.millModuleLine.toString) ++
(if (m.millInternal.reflectAll[mill.Module].isEmpty) Nil
@@ -69,7 +69,7 @@ object ReplApplyHandler{
)
}
- def pprintTask(t: NamedTask[_], evaluator: Evaluator[_]) = {
+ def pprintTask(t: NamedTask[_], evaluator: Evaluator) = {
val seen = mutable.Set.empty[Task[_]]
def rec(t: Task[_]): Seq[Segments] = {
if (seen(t)) Nil // do nothing
@@ -91,7 +91,7 @@ object ReplApplyHandler{
}
class ReplApplyHandler(pprinter0: pprint.PPrinter,
- val evaluator: Evaluator[_]) extends ApplyHandler[Task] {
+ val evaluator: Evaluator) extends ApplyHandler[Task] {
// Evaluate classLoaderSig only once in the REPL to avoid busting caches
// as the user enters more REPL commands and changes the classpath
val classLoaderSig = Evaluator.classLoaderSig