diff options
author | Martin Odersky <odersky@gmail.com> | 2013-02-27 09:12:27 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-02-27 09:14:33 +0100 |
commit | 856f084c474125117ed2166720ba4192d358fbef (patch) | |
tree | bfbcc9c242dae55863ce4cd84a894fb12e34ab9f /src/dotty/tools/dotc/config/PathResolver.scala | |
parent | d29cc7978daa49f68d14eba35af20fbb8dd423c1 (diff) | |
download | dotty-856f084c474125117ed2166720ba4192d358fbef.tar.gz dotty-856f084c474125117ed2166720ba4192d358fbef.tar.bz2 dotty-856f084c474125117ed2166720ba4192d358fbef.zip |
Filling in all ???s
Added reporters.
Added context for signatures.
Implemented method signatures via erasure.
Refined derivedNameType handling.
Diffstat (limited to 'src/dotty/tools/dotc/config/PathResolver.scala')
-rw-r--r-- | src/dotty/tools/dotc/config/PathResolver.scala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/config/PathResolver.scala b/src/dotty/tools/dotc/config/PathResolver.scala index 97ea4525e..3aa42defb 100644 --- a/src/dotty/tools/dotc/config/PathResolver.scala +++ b/src/dotty/tools/dotc/config/PathResolver.scala @@ -135,7 +135,7 @@ object PathResolver { def fromPathString(path: String)(implicit cctx: CondensedContext): JavaClassPath = { val settings = cctx.settings.classpath.update(path) - new PathResolver()(cctx.fresh.withSettings(settings)).result + new PathResolver(cctx.fresh.withSettings(settings)).result } /** With no arguments, show the interesting values in Environment and Defaults. @@ -152,7 +152,7 @@ object PathResolver { val ArgsSummary(sstate, rest, errors) = cctx.settings.processArguments(args.toList, true) errors.foreach(println) - val pr = new PathResolver()(cctx.fresh.withSettings(sstate)) + val pr = new PathResolver(cctx.fresh.withSettings(sstate)) println(" COMMAND: 'scala %s'".format(args.mkString(" "))) println("RESIDUAL: 'scala %s'\n".format(rest.mkString(" "))) pr.result.show @@ -161,7 +161,8 @@ object PathResolver { } import PathResolver.{ Defaults, Environment, firstNonEmpty, ppcp } -class PathResolver(implicit cctx: CondensedContext) { +class PathResolver(cctx: CondensedContext) { + implicit def ctx: Context = cctx import cctx.base.settings val context = ClassPath.DefaultJavaContext @@ -257,7 +258,7 @@ class PathResolver(implicit cctx: CondensedContext) { lazy val result: JavaClassPath = { val cp = new JavaClassPath(containers.toIndexedSeq, context) if (settings.Ylogcp.value) { - Console.println("Classpath built from " + settings.toConciseString(cctx.sstate)) + Console.println("Classpath built from " + settings.toConciseString(ctx.sstate)) Console.println("Defaults: " + PathResolver.Defaults) Console.println("Calculated: " + Calculated) |