| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We introduce a new entry point for the compiler in
`dotty.tools.dotc.Driver`:
```
def process(args: Array[String], simple: interfaces.SimpleReporter,
callback: interfaces.CompilerCallback): interfaces.ReporterResult
```
Except for `args` which is just an array, the argument types and return
type of this method are Java interfaces defined in a new package called
`dotty-interfaces` which has a stable ABI. This means that you can
programmatically run a compiler with a custom reporter and callbacks
without having to recompile it against every version of dotty: you only
need to have `dotty-interfaces` present at compile-time and call the
`process` method using Java reflection.
See `test/test/InterfaceEntryPointTest.scala` for a concrete example.
This design is based on discussions with the IntelliJ IDEA Scala plugin
team. Thanks to Nikolay Tropin for the discussions and his PR
proposal (see #1011).
|
|
|
|
|
| |
It's already used to specify an output folder, don't try to interpret it
as a shortcut for -debug
|
|
|
|
| |
Used to always use bootstrapped version
|
|
|
|
| |
dot script now has -bootstrapped option that will use dotty-compiled-by-dotty.
|
|
|
|
| |
@vladimirNik, should simplify your life
|
|
|
|
|
| |
- Fix typo in JLINE_JAR
- Implement proper Java launch in Cygwin
|
| |
|
| |
|
| |
|
|
|
|
| |
See https://github.com/scala/scala/pull/4465 for details.
|
|
|
|
|
|
|
| |
This update allows to have non-static lambdas.
It doesn't mean that we should emit such,
as they are potential memory leak. See #480
Fixes #470
|
| |
|
|
|
|
|
| |
Includes fixed for emitting string concatenation if string originates from an array.
Eg `"hello " + Array("world")(0)`
|
|
|
|
|
|
|
|
|
|
| |
Dotty requires a mangled bootclasspath to start.
It means that `console` mode of sbt doesn't work for us.
At least I wasn't able to make sbt fork in console,
so instead I've added a Scala-repl into dotty itself :-)
It would be good to make it use dotty one day when we have
a backend :-)
|
|
|
|
|
|
|
|
| |
When CDPATH is set, cd echoes the directory that it is switching to.
The ( cd && pwd ) pattern then prints the directory twice, causing
a mangled path.
See https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Ideally, dotc should reuse a resident compiler and we should not fork sbt
for every task. Until this happens, this option is useful for
development. Fixes #222.
Usage:
$ sbt -DOshort=""
$ ./bin/dotc -Oshort foo.scala
|
| |
|
| |
|
|
|
|
| |
There were a lot in StoreReporter, as we are creating about 0.5M new ones per self-compile.
|
|
|