Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 48e7ded

Browse files
paulpadriaanm
authored andcommitted
SI-7854, SI-6768 better parsing/positioning in parser
The parser hole I found while working on the generated positions serves as the umbrella for a host of improvements. Upgraded positions assigned during some specific challenging situations mostly involving the creation of synthetic trees, e.g. for comprehensions and closures. While doing so improved some error messages. Eliminated some of the most glaring duplication in the parser. It's written like there is some payoff associated with being spectacularly imperative. Not so far.
1 parent 873002a commit 48e7ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/files/continuations-run/t5472.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ t5472.scala:12: warning: expression case4(){
55
case5()
66
} is cps-transformed unexpectedly
77
(location, accessors) <- new ContinuationizedParallelIterable(map)
8-
^
8+
^
99
t5472.scala:12: warning: expression matchEnd3(x: Int){
1010
x
1111
} is cps-transformed unexpectedly

0 commit comments

Comments
 (0)