aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix dropInlined to also change positions of subtreesMartin Odersky2016-10-171-2/+3
| | | |
| * | | Keep position always with termMartin Odersky2016-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When printing with -Yprintpos always have the position follow immediately the term with the position. Makes it easier to interpret diffs.
| * | | Drop erroneous setPos in TreeUnpickler.Martin Odersky2016-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | With that change, all files tested in pickleOK have the same positions before and after pickling.
| * | | Fix pickling of self type positionMartin Odersky2016-10-171-1/+1
| | | | | | | | | | | | | | | | Was: position of self def, now: position of tpt in self def.
| * | | Fix pickling of annotation positionsMartin Odersky2016-10-171-2/+2
| | | |
| * | | Handle shared treesMartin Odersky2016-10-164-15/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Shared trees are pickled under multiple addresses. Previously, only the last address was stored, which led to trees with unknown positions. Now, all addresses are stored.
| * | | Record position of self typeMartin Odersky2016-10-152-14/+18
| | | | | | | | | | | | | | | | Also, some simplifying refactorings and renamings
| * | | Drop original on TypeTreeMartin Odersky2016-10-1511-59/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The plan is to keep original type until after pickling, and afterwards replace it with a simple TypeTree. # Conflicts: # src/dotty/tools/dotc/core/tasty/TreePickler.scala
| * | | Preserve all positions in Tasty.Martin Odersky2016-10-158-52/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal is that pickled and unpickled trees should print the same with -Yprintpos. There are several reasons why this is not the case so far. Some of them are fixed in this commit.
* | | | Add error message - _* syntax - Parsers.scala:1082Andrew Zurn2016-11-022-2/+28
| | | |
* | | | Clean up in `messages.scala`Felix Mulder2016-11-022-228/+225
| | | |
* | | | Fix line splitting when point is first col of lineFelix Mulder2016-11-021-1/+1
| |/ / |/| |
* | | Update error msg for Parsers.scala:1738 and 1739Lucas Burson2016-10-312-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These error messages are for aux ctors needing non-implicit params. I'm testing the error messages with this code ``` class Square(val len: Int) { // typical cases: // (1) this() parens are forgotten, (2) argument set as implicit def this(implicit width: Double) = this(0) def this = { this(4) } } class MyList(val s: String) { def this ```
* | | Add error message IdentifierExpectedThiago Pereira2016-10-313-2/+27
| | | | | | | | | | | | | | | This commit adds the semantic object fir the ```identifier expected``` error. It is part of the https://github.com/lampepfl/dotty/issues/1589
* | | Add error message Parsers.scala:1620 missing type keywordMatthias Sperl2016-10-312-1/+14
| |/ |/|
* | Improve error message formattingShane Delmore2016-10-251-27/+39
| |
* | Update IllegalVariableInPatternAlternative error messageShane Delmore2016-10-252-1/+27
| |
* | Improve error message for WrongNumberOfArgsShane Delmore2016-10-254-6/+41
| |
* | Add error message - Parsers.scala:695Andrew Zurn2016-10-252-1/+25
| |
* | Merge pull request #1621 from thiagoandrade6/feature/error-messagesFelix Mulder2016-10-252-2/+40
|\ \ | | | | | | Add error message - Comments.scala:128
| * | Add error message - Comments.scala:128Thiago Pereira2016-10-252-2/+40
| | | | | | | | | | | | | | | This commit adds the semantic object for the ```definition not found``` error. It is part of the (https://github.com/lampepfl/dotty/issues/1589)[https://github.com/lampepfl/dotty/issues/1589]
* | | Merge pull request #1600 from dotty-staging/fix-#1500Guillaume Martres2016-10-251-14/+43
|\ \ \ | |/ / |/| | Fix-#1500 Include constraining type variables when interpolating
| * | Remove fixpoint computation of interpolateUndetVarsGuillaume Martres2016-10-251-10/+5
| | | | | | | | | | | | | | | This is not necessary now that `variances` includes a fixpoint computation
| * | Fix-#1500 Include constraining type variables when interpolatingMartin Odersky2016-10-151-5/+39
| |/ | | | | | | Fixes #1500. Review by @smarter.
* | Merge pull request #1599 from dotty-staging/fix-#1570Guillaume Martres2016-10-252-4/+10
|\ \ | | | | | | Fix #1570: Allow inline parameters as inline args
| * | Fix #1570: Allow inline parameters as inline argsMartin Odersky2016-10-142-4/+10
| |/ | | | | | | | | | | | | Inline parameters can always be passed to other inline parameters. Fixes #1570.
* | Merge pull request #1624 from sebastianharko/masterFelix Mulder2016-10-252-1/+33
|\ \ | | | | | | Add error message for Parsers:1329
| * | break linesSebastian Harko2016-10-251-14/+11
| | |
| * | add error message related to missing yield/do in for-comprehensionsSebastian Harko2016-10-242-1/+36
| | |
* | | Merge pull request #1608 from dotty-staging/modifiersodersky2016-10-252-41/+98
|\ \ \ | | | | | | | | Record syntactic information about modifiers
| * | | fix error in rebase mergeliu fengyun2016-10-241-1/+1
| | | |
| * | | rename val and unnecessary atPosliu fengyun2016-10-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that there's no need to explicitly call `atPos` here, because the initializer of `Positioned` will automatically synthesize the initial position from its children elements. Refer to the definition of `Positioned` for more details.
| * | | address review feedbackliu fengyun2016-10-222-47/+36
| | | |
| * | | add tests for modifiersliu fengyun2016-10-221-10/+22
| | | |
| * | | Record syntactic information about modifiersliu fengyun2016-10-222-14/+70
| | | |
* | | | Merge pull request #1620 from dotty-staging/fix-1614Felix Mulder2016-10-251-1/+5
|\ \ \ \ | |_|/ / |/| | | Fix #1614 tailrec.
| * | | Fix #1614: correctly handle polymorphic inner methodsDmitry Petrashko2016-10-231-1/+5
| | | | | | | | | | | | | | | | | | | | Even if outer class & method isn't polymorpnic, inner method might be. Need to handle this correctly.
* | | | Update error message at Parsers.scala:1901Lucas Burson2016-10-232-3/+15
|/ / / | | | | | | | | | This one is about a 'missing return type' when we can't infer a type. I used tests/neg/i871.scala to verify the change.
* / / Add explanation for "illegal start of simple expression"Jyotman Singh2016-10-232-1/+19
|/ /
* | Add unbound placeholder parameter message.ruben2016-10-222-1/+36
| |
* | Merge pull request #1615 from sebastianharko/masterFelix Mulder2016-10-222-2/+49
|\ \ | | | | | | Add error messages - Parsers.scala:626 and Parsers.scala:1492
| * | add messages for interpolated string error and repeated modifier errorSebastian Harko2016-10-212-2/+49
| | |
* | | Fix #1286: Error on inexistent imports that are not used.Nicolas Stucki2016-10-211-0/+13
| | | | | | | | | | | | This commit also fixes #1583.
* | | Move files out of the dotty packageMartin Odersky2016-10-2011-32/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove unused classes Pair and Singleton. - Move classes from dotty.annotation.internal to scala.annotation.internal. The only classes remaining now are in dotty.runtime and DottyPredef. We should probably do something about them as well at some point.
* | | Introduce scalaShadowing packageMartin Odersky2016-10-202-0/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | The `scalaShadowing` package is used to safely modify classes and objects in scala so that they can be used from dotty. They will be visible as members of the `scala` package, replacing any objects or classes with the same name. But their binary artifacts are in `scalaShadowing` so they don't clash with the same-named `scala` members at runtime.
* | | Merge pull request #1594 from dotty-staging/fix-#1576Olivier Blanvillain2016-10-201-1/+1
|\ \ \ | | | | | | | | Fix #1576: Parameters of Java annotations should be public
| * | | Fix #1576: Parameters of Java annotations should be publicMartin Odersky2016-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | Parameters of annotation classes parsed by the Java parser should have public val parameters. Otherwise they cannot be accessed as fields.
* | | | Merge pull request #1595 from dotty-staging/fix-#1567odersky2016-10-201-5/+15
|\ \ \ \ | |_|/ / |/| | | Fix #1567: Widen private constructor in value class
| * | | Fix #1567: Widen private constructor in value classMartin Odersky2016-10-141-5/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | Private or protected constructors of value classes need to be widenened to public in order to enable boxing anywhere. Technically we should also do something about qualified private constructors, but since we want to get rid of them anyway it's urgent.
* | | Improved error messages in Desugar.scalaShane Delmore2016-10-192-5/+87
| | |