summaryrefslogtreecommitdiff
path: root/test/files/presentation/find-trees/FindTrees.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/presentation/find-trees/FindTrees.scala')
-rw-r--r--test/files/presentation/find-trees/FindTrees.scala16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/files/presentation/find-trees/FindTrees.scala b/test/files/presentation/find-trees/FindTrees.scala
index 38ac2984c1..63272948a9 100644
--- a/test/files/presentation/find-trees/FindTrees.scala
+++ b/test/files/presentation/find-trees/FindTrees.scala
@@ -23,18 +23,26 @@ object Test extends InteractiveTest {
println(this.reporter.infos.mkString("\n"))
}
+ // You can enable settings for the presentation compiler here
+ // but don't leave them in the nightly build since the log will most likely
+ // contain absolute paths
+
+// settings.YpresentationDebug.value = true
+// settings.YpresentationVerbose.value = true
+
override def runTest {
import compiler._
val src = sourceFiles(0) // only one under src/
- val pos = rangePos(src, 426, 426, 433)
- val pos1 = src.position(19, 15)
+ //val pos = rangePos(src, 426, 426, 433)
+ val pos1 = src.position(19, 15) // this is an offset position
- // reload is issued already by the framework, but we can redo it here as an example
+ // reload is issued already by the framework, so we don't need to do it, but it doesn't hurt
val reload = new Response[Unit]
compiler.askReload(List(src), reload)
reload.get // it's important to let reload finish before asking other things.
- askForPos(pos)
+ // re-enable when positions in the primary constructor are handled reliably
+// askForPos(pos)
println("=" * 20)
askForPos(pos1)