diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-07-11 15:34:21 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-07-11 15:34:21 +1000 |
commit | c78081090ef2fddcb013c908b3a986d2769a9fe2 (patch) | |
tree | 087c7c6b644c50535b1d19f68099fdd9e761ed27 /src/main/scala/scala/async/internal/AsyncMacro.scala | |
parent | e4053220e091988e883f87d66459f329d5a39920 (diff) | |
download | scala-async-c78081090ef2fddcb013c908b3a986d2769a9fe2.tar.gz scala-async-c78081090ef2fddcb013c908b3a986d2769a9fe2.tar.bz2 scala-async-c78081090ef2fddcb013c908b3a986d2769a9fe2.zip |
Comply with range position checking.
- Make sure all trees are positioned
- Mark range positions for synthetic code as transparent to allow
some wiggle room for overlapping ranges.
Enables -Yrangepos for our test suite. We can't add it for
the entire build until the fix for SI-7649 lands in the compiler.
Diffstat (limited to 'src/main/scala/scala/async/internal/AsyncMacro.scala')
-rw-r--r-- | src/main/scala/scala/async/internal/AsyncMacro.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/scala/scala/async/internal/AsyncMacro.scala b/src/main/scala/scala/async/internal/AsyncMacro.scala index 6b7d031..23cc611 100644 --- a/src/main/scala/scala/async/internal/AsyncMacro.scala +++ b/src/main/scala/scala/async/internal/AsyncMacro.scala @@ -26,4 +26,7 @@ private[async] trait AsyncMacro val callSiteTyper: global.analyzer.Typer val macroApplication: global.Tree + def macroPos = macroApplication.pos.makeTransparent + def atMacroPos(t: global.Tree) = global.atPos(macroPos)(t) + } |