summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/api/Position.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-10-03 23:17:31 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-10-04 07:33:47 +0200
commitc868038423b5c28234e66788158e379754ed47b3 (patch)
treebc0644d50431fb7bfd8eedcac6e4b42a7523737c /src/reflect/scala/reflect/api/Position.scala
parent02b9c23d1ab9d12eb31526d3edbc76d8ee43abf2 (diff)
downloadscala-c868038423b5c28234e66788158e379754ed47b3.tar.gz
scala-c868038423b5c28234e66788158e379754ed47b3.tar.bz2
scala-c868038423b5c28234e66788158e379754ed47b3.zip
moves Attachments from api to macros
Because they are only available in macros.Universe, not in api.Universe, therefore I'd argue that the confusion factor is stronger than the weirdness of scala.reflect.api.Position extending scala.reflect.macros.Attachments.
Diffstat (limited to 'src/reflect/scala/reflect/api/Position.scala')
-rw-r--r--src/reflect/scala/reflect/api/Position.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/api/Position.scala b/src/reflect/scala/reflect/api/Position.scala
index 9c63e4becf..d3dc9c884f 100644
--- a/src/reflect/scala/reflect/api/Position.scala
+++ b/src/reflect/scala/reflect/api/Position.scala
@@ -1,6 +1,8 @@
package scala.reflect
package api
+import scala.reflect.macros.Attachments
+
/** The Position class and its subclasses represent positions of ASTs and symbols.
* Except for NoPosition and FakePos, every position refers to a SourceFile
* and to an offset in the sourcefile (its `point`). For batch compilation,