| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This allows to remove the ugly workaround for default methods.
There is also a slight adaptation for the new way to encode a
reference to the JS global scope in the IR.
|
|\
| |
| | |
fix command line processing error
|
| | |
|
|\ \
| | |
| | | |
Fix typing of SeqLiterals
|
| | |
| | |
| | |
| | | |
The test contained an error that was unvovered by the "Nothing is not Nullable" fix.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The field keeps track of the element type. This is necessary
because JavaSeqLiteral is nonvariant and the elements might
be empty, so we cannot always compute the type from the
element types.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add/collection strawman
|
| | | |
| | | |
| | | |
| | | |
| | | | |
It worked more or less by accident before. Now it's more complicated,
but we also have tests.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Centered around views instead of iterators.
|
|\ \ \ \
| | | | |
| | | | | |
Implement most of the Scala.js IR code generator.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Notable things that are not yet implemented:
* JS exports
* Scala.js-defined JS classes.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Notable things that are missing at this point:
* Pattern matching
* Try
* Most of the JavaScript interop
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Whether a language SAM type is also a valid SAM type for the
back-end is a platform-specific thing. On Scala.js, for example,
the rules are completely different than for the JVM.
This commit therefore moves the logic of the predicate used by
ExpandSAMs to decide whether to expand a SAM as an anonymous class
to the Platform.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
First steps towards rewriting from Scala2 in dotty
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
1. trailing `_`:
`x _` is rewritten to `(() => x)` not to `x`
2. lazy vals:
Rewrites are done in Typer, not LazyVals. Later on we are too much at risk to
hit synthetically generated lazy vals.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
A constructor
def this() { ... }
needs to be rewritten to
def this() = { ... }
not to
def this(): Unit = { ... }
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`Iterator.sliding(2, 1)` returns a one-element result if the original iterator
contains only one element, which makes it unpleasant to use for our task. Replaced
by a fold.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Gave overlapping positions in the case of longer lists of children.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Remove println; add docs
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Test rewritings that were implemented so far.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Scala2 allows `x _` even if `x` is not a method.
Dotty disallows them. The patch removes the ` _`
in these cases.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Revert this commit once #1149 is fixed.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Some random neg tests from previous experiments.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Selectors should be defs, not lazy vals.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Imports are missing afterwards.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Map typed to corresponding untyped trees.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
No more leaking ofMove PatchedFiles in a settings option. Move all
patch classes into a `Rewrites` object.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Driver should not know that patch functionality exists. Instead, introduce settings
that can introduce their own stateful values.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Firs version of patching that can be invoked by dotty compiler
itself.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
make token declarations consistent
|
| | |_|_|_|/
| |/| | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Pickle/unpickle SuperAccessor names
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Needed to restore the SuperAccessor flag in separate compilation.
Fixes #1144.
|