summaryrefslogtreecommitdiff
path: root/test/files/run/dynamic-applyDynamic.check
diff options
context:
space:
mode:
authorSimon Schaefer <mail@antoras.de>2013-11-23 23:45:59 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-11-26 18:57:47 +0100
commitb915f440eb3738d2991b1f96b7c810cc87b88d0c (patch)
tree9934ec7d3e2596e64f71fd16c30c48dcf83b1c39 /test/files/run/dynamic-applyDynamic.check
parent2ad9666ce8863814dd5d27f1d43739e89c8c286b (diff)
downloadscala-b915f440eb3738d2991b1f96b7c810cc87b88d0c.tar.gz
scala-b915f440eb3738d2991b1f96b7c810cc87b88d0c.tar.bz2
scala-b915f440eb3738d2991b1f96b7c810cc87b88d0c.zip
SI-7463,SI-8003 Correct wrong position for {select,apply}Dynamic calls
The new positions are range positions that directly refer to the beginning and the end of the method calls in the sources instead of simply point to the beginning of the expression. This allows the scala-ide to semantically highlight select- and applyDynamic method calls, because it has only to traverse the tree and apply the color ranges to the given position ranges. This also fixes the position marker of an error messages related to a wrong Dynamic method signature.
Diffstat (limited to 'test/files/run/dynamic-applyDynamic.check')
-rw-r--r--test/files/run/dynamic-applyDynamic.check14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/dynamic-applyDynamic.check b/test/files/run/dynamic-applyDynamic.check
new file mode 100644
index 0000000000..89a0d55282
--- /dev/null
+++ b/test/files/run/dynamic-applyDynamic.check
@@ -0,0 +1,14 @@
+[[syntax trees at end of typer]] // newSource1.scala
+[0:67]package [0:0]<empty> {
+ [0:67]object X extends [9:67][67]scala.AnyRef {
+ [9]def <init>(): [9]X.type = [9]{
+ [9][9][9]X.super.<init>();
+ [9]()
+ };
+ [17:30]private[this] val d: [21]D = [25:30][25:30][25:30]new [29:30]D();
+ [21]<stable> <accessor> def d: [21]D = [21][21]X.this.d;
+ [37:49][37:38][37:38][37]X.this.d.applyDynamic(<39:45>"method")([46:48]10);
+ [56:61]<56:57><56:57>[56]X.this.d.applyDynamic(<56:57>"apply")([58:60]10)
+ }
+}
+