blob: 0b9cf58c8991675243900176a2c07b486017b87b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package scala.reflect.reify
package utils
trait StdAttachments {
self: Utils =>
import global._
case class ReifyBindingAttachment(binding: Tree)
def reifyBinding(tree: Tree): Tree =
tree.attachments.get[ReifyBindingAttachment] match {
case Some(ReifyBindingAttachment(binding)) => binding
case other => Ident(NoSymbol)
}
case class ReifyAliasAttachment(sym: Symbol, alias: TermName)
}
|