summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/internal/StdAttachments.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/internal/StdAttachments.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/internal/StdAttachments.scala')
-rw-r--r--src/reflect/scala/reflect/internal/StdAttachments.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/StdAttachments.scala b/src/reflect/scala/reflect/internal/StdAttachments.scala
index 5c4d1f7e28..9fe443bf50 100644
--- a/src/reflect/scala/reflect/internal/StdAttachments.scala
+++ b/src/reflect/scala/reflect/internal/StdAttachments.scala
@@ -8,7 +8,7 @@ trait StdAttachments {
* Common code between reflect-internal Symbol and Tree related to Attachments.
*/
trait Attachable {
- protected var rawatt: scala.reflect.api.Attachments { type Pos = Position } = NoPosition
+ protected var rawatt: scala.reflect.macros.Attachments { type Pos = Position } = NoPosition
def attachments = rawatt
def updateAttachment[T: ClassTag](attachment: T): this.type = { rawatt = rawatt.update(attachment); this }
def removeAttachment[T: ClassTag]: this.type = { rawatt = rawatt.remove[T]; this }