aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/parsing
Commit message (Collapse)AuthorAgeFilesLines
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-2214-7091/+0
|
* Merge pull request #1634 from dotty-staging/change-tasty-pos-ctdodersky2016-11-212-21/+21
|\ | | | | Towards correct positions in TASTY types
| * Make This and Super take idents as qualifier/mixinMartin Odersky2016-11-211-13/+14
| | | | | | | | | | The qualifier of a This and the mixin of a Super were names, which meant that their positions were lost. Now they are untyped idents.
| * Clean up parameterized typedefsMartin Odersky2016-11-112-8/+7
| | | | | | | | | | | | | | | | Express them in terms PolyTypeTrees rather than having an irregular, untyped only tparams field. This is necessary if we want to pickle type trees instead of types, because now the rhs of a typedef tells the whole story, so we are not required any longer to use the info of the symbol.
* | Merge pull request #1696 from felixmulder/topic/assert-message-lazinessFelix Mulder2016-11-171-7/+7
|\ \ | | | | | | Make sure messages are lazily evaluated until `report` in `Reporter`
| * | Make sure all `Message` creation is by nameFelix Mulder2016-11-141-7/+7
| |/
* | Merge pull request #1718 from dotty-staging/fix-#1703odersky2016-11-171-1/+2
|\ \ | | | | | | Fix #1703
| * | Fix #1703 - survive illegal self type clauseMartin Odersky2016-11-161-1/+2
| |/ | | | | | | | | | | | | Since self types are critical we should only install one if it is syntactcally correct. Fixes #1703.
* | Add an error message for illegal start of simple patternMiron Aseev2016-11-161-1/+1
| |
* | Add an error message for incorrect sequence wildcard pattern positionMiron Aseev2016-11-141-2/+2
| |
* | Fix typosPaolo G. Giarrusso2016-11-111-3/+3
|/
* Add error message for illegal literalsMiron Aseev2016-11-071-1/+1
|
* Add error message - _* syntax - Parsers.scala:1082Andrew Zurn2016-11-021-1/+2
|
* Update error msg for Parsers.scala:1738 and 1739Lucas Burson2016-10-311-2/+2
| | | | | | | | | | | | | | | | 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-312-2/+3
| | | | | 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-311-1/+1
|
* Add error message - Parsers.scala:695Andrew Zurn2016-10-251-1/+1
|
* Merge pull request #1624 from sebastianharko/masterFelix Mulder2016-10-251-1/+1
|\ | | | | Add error message for Parsers:1329
| * add error message related to missing yield/do in for-comprehensionsSebastian Harko2016-10-241-1/+1
| |
* | Merge pull request #1608 from dotty-staging/modifiersodersky2016-10-251-37/+52
|\ \ | |/ |/| 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-221-33/+22
| |
| * add tests for modifiersliu fengyun2016-10-221-10/+22
| |
| * Record syntactic information about modifiersliu fengyun2016-10-221-10/+24
| |
* | Update error message at Parsers.scala:1901Lucas Burson2016-10-231-1/+1
| | | | | | | | 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-231-1/+1
|/
* Add unbound placeholder parameter message.ruben2016-10-221-1/+1
|
* Merge pull request #1615 from sebastianharko/masterFelix Mulder2016-10-221-2/+2
|\ | | | | Add error messages - Parsers.scala:626 and Parsers.scala:1492
| * add messages for interpolated string error and repeated modifier errorSebastian Harko2016-10-211-2/+2
| |
* | 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.
* | explanation for error message related to use of early definitionsSebastian Harko2016-10-161-1/+1
|/
* Use => instead of -> for PolyTypesMartin Odersky2016-10-121-2/+2
| | | | | | If PolyTypes are to become value types we want to keep `=>` as the arrow for consistency. `->` should be reserved for PolyTypes that do not have side effects on instantiation.
* Merge GenericType, TypeLambda and PolyTypeMartin Odersky2016-10-121-1/+1
|
* Correct line extraction from SourcePositionFelix Mulder2016-10-101-13/+11
|
* Improve positions for MemberDefs using `namePos`Felix Mulder2016-10-101-3/+17
|
* Add deprecation message on `with` type operatorFelix Mulder2016-10-101-1/+1
|
* Make relevant parts of compiler conform to new error handlingFelix Mulder2016-10-101-12/+11
|
* Complete better structure to diagnostic messagesFelix Mulder2016-10-103-8/+7
|
* Change layout of ErrorMessagesFelix Mulder2016-10-103-4/+7
|
* Add initial structure for improved explanations of error messagesFelix Mulder2016-10-101-13/+10
|
* Typecheck usecases in fresh local scopeFelix Mulder2016-10-061-1/+1
|
* Fix cooking of docstringsFelix Mulder2016-10-061-1/+1
|
* Add `Comments` object instead of `Scanners.Comment` case classFelix Mulder2016-10-062-6/+2
|
* Address @smarter's review commentsMartin Odersky2016-10-021-1/+1
|
* Add inline for valsMartin Odersky2016-10-021-5/+10
| | | | | | | | | | - allow inline as an alternative to final for vals (final is retained for backwards compatibility for now) - allow inline for parameters - check that rhs of inline value has a constant type - check that arguments to inline value parameters have constant type - check that inline members are not deferred - make inline members effectively final
* Make inline a keywordMartin Odersky2016-10-023-16/+38
| | | | | | | `inline` is now a modifier keyword. To keep disruption tolerable, we still allow `@inline` as an annotation as well. Other uses of `inline` are supported only under `-language:Scala2` and are rewritten to identifiers in backticks.
* Eliminate SelectFromTypeTree from docsMartin Odersky2016-09-251-5/+2
|
* Get rid of Thicket(List(...)) as an expressionMartin Odersky2016-09-251-2/+2
| | | | Thicket has a vararg constructor, so this syntax is redundant.