aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to Scala.js 0.6.8.Sébastien Doeraene2016-03-182-18/+5
| | | | | | 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.
* Merge pull request #1176 from liufengyun/masterDmitry Petrashko2016-03-181-2/+2
|\ | | | | fix command line processing error
| * fix command line processing errorliu fengyun2016-03-151-2/+2
| |
* | Merge pull request #1166 from dotty-staging/fix-#1136odersky2016-03-1820-61/+80
|\ \ | | | | | | Fix typing of SeqLiterals
| * | Fix test casesMartin Odersky2016-03-112-2/+2
| | | | | | | | | | | | The test contained an error that was unvovered by the "Nothing is not Nullable" fix.
| * | Add second field to SeqLiteralMartin Odersky2016-03-1017-57/+76
| | | | | | | | | | | | | | | | | | | | | 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.
| * | Nothing is not nullableMartin Odersky2016-03-101-1/+1
| | |
| * | More info when resolveOverloading failsMartin Odersky2016-03-101-1/+1
| | |
* | | Merge pull request #1160 from dotty-staging/add/collection-strawmanodersky2016-03-186-6/+601
|\ \ \ | | | | | | | | Add/collection strawman
| * | | Refine pretypeArgsMartin Odersky2016-03-093-5/+65
| | | | | | | | | | | | | | | | | | | | It worked more or less by accident before. Now it's more complicated, but we also have tests.
| * | | Make use of better overload resolution in collections strawman testMartin Odersky2016-03-091-2/+2
| | | |
| * | | Pretype functional arguments when doing overload resolutionMartin Odersky2016-03-093-2/+51
| | | |
| * | | New collection strawmanMartin Odersky2016-03-092-2/+488
| | | | | | | | | | | | | | | | Centered around views instead of iterators.
* | | | Merge pull request #1148 from sjrd/scalajs-gen-exprsodersky2016-03-1811-90/+1502
|\ \ \ \ | | | | | | | | | | Implement most of the Scala.js IR code generator.
| * | | | More documentation for some Scala.js-specific methods.Sébastien Doeraene2016-03-163-4/+33
| | | | |
| * | | | Cache the Phases we need in JSCodeGen like all other phases.Sébastien Doeraene2016-03-162-8/+7
| | | | |
| * | | | Implement most of use-site JavaScript interop.Sébastien Doeraene2016-03-102-16/+437
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable things that are not yet implemented: * JS exports * Scala.js-defined JS classes.
| * | | | Implement most of the Scala.js IR code generator.Sébastien Doeraene2016-03-107-75/+1030
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable things that are missing at this point: * Pattern matching * Try * Most of the JavaScript interop
| * | | | Move the logic of ExpandSAMs.isJvmSam to Platform.isSam.Sébastien Doeraene2016-03-073-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #1154 from dotty-staging/add-rewriteodersky2016-03-1824-84/+433
|\ \ \ \ \ | | | | | | | | | | | | First steps towards rewriting from Scala2 in dotty
| * | | | | Address reviewer comments.Martin Odersky2016-03-148-40/+46
| | | | | |
| * | | | | Fix two rewrite patches.Martin Odersky2016-03-123-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Fix patch for constructors with procedure syntaxMartin Odersky2016-03-121-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A constructor def this() { ... } needs to be rewritten to def this() = { ... } not to def this(): Unit = { ... }
| * | | | | Add patch for variance errorsMartin Odersky2016-03-122-7/+16
| | | | | |
| * | | | | Fix assert in RewritesMartin Odersky2016-03-121-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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.
| * | | | | Fix setChildPositionsMartin Odersky2016-03-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Gave overlapping positions in the case of longer lists of children.
| * | | | | Polish rewrite testMartin Odersky2016-03-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Remove println; add docs
| * | | | | Rewrite testMartin Odersky2016-03-123-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | Test rewritings that were implemented so far.
| * | | | | Patch redundant `_' suffixes.Martin Odersky2016-03-121-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scala2 allows `x _` even if `x` is not a method. Dotty disallows them. The patch removes the ` _` in these cases.
| * | | | | More detailed diagnostic in NavigateASTMartin Odersky2016-03-121-1/+6
| | | | | |
| * | | | | Maintain source position in GettersMartin Odersky2016-03-121-2/+2
| | | | | |
| * | | | | Disable volatile interpretation of lazy vals under -language:Scala2Martin Odersky2016-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Revert this commit once #1149 is fixed.
| * | | | | Remove printlnMartin Odersky2016-03-121-3/+1
| | | | | |
| * | | | | More neg testsMartin Odersky2016-03-123-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | Some random neg tests from previous experiments.
| * | | | | Test case for #1149Martin Odersky2016-03-121-0/+18
| | | | | |
| * | | | | Add @volatile when rewriting lazy vals from Scala2.Martin Odersky2016-03-121-2/+8
| | | | | |
| * | | | | Better error message when an outer path is not found.Martin Odersky2016-03-121-1/+6
| | | | | |
| * | | | | Copy full modifiers to companionsMartin Odersky2016-03-121-7/+6
| | | | | |
| * | | | | Fix desugaring of lazy patterns.Martin Odersky2016-03-121-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | Selectors should be defs, not lazy vals.
| * | | | | Untangle withAnnotation naming.Martin Odersky2016-03-122-4/+8
| | | | | |
| * | | | | Test language features always in phase typer.Martin Odersky2016-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Imports are missing afterwards.
| * | | | | Add functionality to navigate ASTsMartin Odersky2016-03-122-32/+115
| | | | | | | | | | | | | | | | | | | | | | | | Map typed to corresponding untyped trees.
| * | | | | Better encapsulationMartin Odersky2016-03-126-93/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No more leaking ofMove PatchedFiles in a settings option. Move all patch classes into a `Rewrites` object.
| * | | | | Avoid setupMethod in DriverMartin Odersky2016-03-124-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Driver should not know that patch functionality exists. Instead, introduce settings that can introduce their own stateful values.
| * | | | | Add patching functionality for migrationMartin Odersky2016-03-126-3/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firs version of patching that can be invoked by dotty compiler itself.
* | | | | | Merge pull request #1178 from liufengyun/tokens-fixDmitry Petrashko2016-03-151-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | make token declarations consistent
| * | | | | | make token declarations consistentliu fengyun2016-03-141-2/+2
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #1165 from dotty-staging/fix-#1144Dmitry Petrashko2016-03-154-8/+32
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Pickle/unpickle SuperAccessor names
| * | | | | Delete unused lineMartin Odersky2016-03-121-1/+0
| | | | | |
| * | | | | Pickle/unpickle SuperAccessor namesMartin Odersky2016-03-104-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to restore the SuperAccessor flag in separate compilation. Fixes #1144.