aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/repl/CompilingInterpreter.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix #2186: Synchronize classpath handling with Scala 2.12Guillaume Martres2017-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This commit is a very crude port of the classpath handling as it exists in the 2.12.x branch of scalac (hash: 232d95a198c94da0c6c8393624e83e9b9ac84e81), this replaces the existing Classpath code that was adapted from scalac years ago. This code was written by Grzegorz Kossakowski, Michał Pociecha, Lukas Rytz, Jason Zaugg and other scalac contributors, many thanks to them! For more information on this implementation, see the description of the PR that originally added it to scalac: https://github.com/scala/scala/pull/4060 Changes made to the copied code to get it to compile with dotty: - Rename scala.tools.nsc.util.ClassPath to dotty.tools.io.ClassPath - Rename scala.tools.nsc.classpath.* to dotty.tools.dotc.classpath.* - Replace "private[nsc]" by "private[dotty]" - Changed `isClass` methods in FileUtils to skip Scala 2.11 implementation classes (needed until we stop being retro-compatible with Scala 2.11) I also copied PlainFile.scala from scalac to get access to `PlainNioFile`.
* Merge pull request #1761 from dotty-staging/topic/product-showFelix Mulder2016-12-141-3/+32
|\ | | | | [REPL] Add show capability to common types
| * Add comment regarding prettificationFelix Mulder2016-12-011-0/+17
| |
| * Fix literal type printingFelix Mulder2016-12-011-0/+3
| |
| * Get rid of nesting implicitsFelix Mulder2016-11-301-12/+1
| |
| * Print List and Map abbreviatedFelix Mulder2016-11-301-1/+8
| |
| * Make repl use show instances where possibleFelix Mulder2016-11-301-2/+15
| |
* | Clean up importsMartin Odersky2016-12-011-1/+1
|/ | | | | Honor the new scheme where any explicit import of a root import will disable the root import.
* Make `findTypes` take the `resultType` of `MethodType`Felix Mulder2016-11-241-7/+12
| | | | | This is done so that we can use show for the entire method except for the ascribed type added by the compiler on success.
* Fix defs not being printed correctlyFelix Mulder2016-11-241-3/+22
|
* Add colon after method type, prefix def/val/var in REPLReto Hablützel2016-11-241-2/+7
|
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-221-0/+966