summaryrefslogtreecommitdiff
path: root/test/files/neg/quasiquotes-syntax-error-position.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-8285 use correct kind of map for quasiquote positionsDenys Shabalin2014-02-281-0/+5
| | | | | | | Previously mutable.ListMap was used with assumption that it preserved order of inserted elements (but it doesn't). Surprisingly logic that assumed ordered elements worked mosly fine on unordered ones. I guess two bugs can cancel each other out.
* SI-6844 restrict splicing in parameter positionDenys Shabalin2014-01-161-1/+2
| | | | | | | | | | | | Previously were a bit too permissive on how splicing in function parameter position worked. This made confusing things like possible: val x = TermName(“x”) q”def foo($x)” Now you can either splice trees in that position (ValDefs) or you have to provide type if you splice a name.
* SI-6843 well-positioned syntax errors for quasiquotesDen Shabalin2013-08-141-0/+15
This is achieved in a following way: 1. Similarly to toolbox quasiquotes can go away with wrapping for parsing purpose after introduction of `parseStats` and `parseRule` entry points. 2. In case of syntax error quasiquote computes equivalent corresponding position in the source code with the help of `corrrespondingPosition` mapper which relies on position data collected into `posMap` during code generation.