aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/parsing
Commit message (Collapse)AuthorAgeFilesLines
* Change '... expected but found ...' to MessageEnno Runne2017-02-142-10/+8
|
* Fix #1976: Hack to support scala.xml's $scope (#1977)odersky2017-02-141-1/+0
| | | | | | This is a gross hack to support the need for a $scope binding when XML literals are created. It should go away once we phase out XML literals. A library-based solution should use implicits instead.
* Fix parsing annotation on function typeGuillaume Martres2017-02-121-1/+5
|
* Merge pull request #1941 from dotty-staging/fix/infix-posodersky2017-02-082-15/+13
|\ | | | | Better positions for infix operations
| * Represent untyped operators as Ident instead of NameGuillaume Martres2017-02-052-15/+13
| | | | | | | | | | | | | | | | This has two advantages: - We can distinguish BackquotedIdent from Ident, allowing the user to use a defined "type `&`", see testcase. - We get better positions for the operators. This is useful in IDEs, for example to get the type at point.
* | Allow implicit-by-name parametersMartin Odersky2017-02-081-6/+2
|/
* Fix some dotty compilation errorsGuillaume Martres2017-01-281-1/+2
|
* Improve error position and drop second error since it is prunedJonathan Brachthäuser2017-01-081-1/+1
|
* Replace all occurrences of Id, ident or Ident with idJonathan Brachthäuser2017-01-081-36/+36
| | | | | | | To match the specs in https://github.com/lampepfl/dotty/blob/master/docs/syntax-summary.txt all occurences of Id, ident or Ident in comments have been replaced with the terminal `id`.
* Add error message for dangling this in path selectionsJonathan Brachthäuser2017-01-081-1/+1
| | | | | | | | | | | | The following examples trigger the error message: val x: Foo.this = ??? // Also triggers the error: import foo.this // Additionally, also slays the compiler type X = Foo.this.type
* Add error message for unbound wildcard type.Jarrod Janssen2017-01-021-1/+1
|
* Fix #1716: Don't allow wildcards as type arguments to methodsMartin Odersky2016-12-251-8/+12
| | | | | | | | Wildcards don't make sense as type arguments to methods, and I believe to keep things simple this should also apply to method type arguments in patterns. The best way to enforce this is to make use of the existing infrastructure in the parser for topLevelTypes.
* Add error messages - Parsers.scala:712 (#1842)Adam Trousdale2016-12-211-1/+1
| | | | | * Add error messages - Parsers.scala:712 * Tidy up imports and formatting
* Merge pull request #1822 from dotty-staging/fix-#1792odersky2016-12-181-0/+2
|\ | | | | Fix #1792: Allow newline in front of `{` for procedure syntax
| * Fix #1792: Allow newline in front of `{` when supporting procedure syntax.Martin Odersky2016-12-141-0/+2
| |
* | Merge pull request #1775 from dotty-staging/add-implicit-funtypesodersky2016-12-182-52/+100
|\ \ | | | | | | Add implicit function types
| * | Add code to disable old implicit closure syntax in blocksMartin Odersky2016-12-171-1/+11
| | | | | | | | | | | | | | | | | | | | | This will no longer be supported. On the other hand, as long as the alternative is not yet legal in Scala2.x we cannot flag this as an error. So the migration warning/error and patch code is currently disabled.
| * | Generalize syntax for implicit function valuesMartin Odersky2016-12-172-43/+76
| | | | | | | | | | | | | | | - allow more than one implicit binding - harmonize syntax in expressions and blocks
| * | Cleanup of implicit modifiers schemeMartin Odersky2016-12-171-13/+12
| | | | | | | | | | | | | | | Implicit modifiers were quite irregular compared to the other ones. This commit does a cleanup.
| * | Add syntax for implicit functionsMartin Odersky2016-12-171-5/+11
| | |
* | | Make errors are not swept under the carpetMartin Odersky2016-12-171-1/+2
|/ / | | | | | | | | | | | | | | | | Typer#ensureReported's comment outlines an example where errors could go unreported, resulting in error trees after typer without any reported error messages. This commit makes sure that at least one error is reported if a tree node has an error type. Fixes #1802.
* | only allow $_ in patternsliu fengyun2016-12-121-6/+6
| |
* | fix #1779: support $_ and $_id in interpolated stringliu fengyun2016-12-082-1/+5
|/
* Rename ...Pos to ...Offset and add pointOffsetMartin Odersky2016-11-241-36/+37
|
* More robust scheme for taking start/end of positions when parsingMartin Odersky2016-11-241-31/+40
| | | | | | | Some trees, which do not consume input have unassigned positions (so that they can fit in whatever range they are integrated). It's therefore risky to take the start or end of a parsed tree's position. This commit guards against the case where the position of the tree does not exist.
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-2214-0/+7091