blob: e8b847600c3bc857a1eda844e917beb237fde798 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package scala.reflect.makro
trait Aliases {
self: Context =>
/** Aliases of mirror types */
type Symbol = mirror.Symbol
type Type = mirror.Type
type Name = mirror.Name
type Tree = mirror.Tree
type Position = mirror.Position
type Scope = mirror.Scope
type Modifiers = mirror.Modifiers
type Expr[+T] = mirror.Expr[T]
type TypeTag[T] = mirror.TypeTag[T]
/** Creator/extractor objects for Expr and TypeTag values */
val TypeTag = mirror.TypeTag
val Expr = mirror.Expr
/** incantations for summoning tags */
def tag[T](implicit ttag: TypeTag[T]) = ttag
def typeTag[T](implicit ttag: TypeTag[T]) = ttag
def groundTag[T](implicit gttag: GroundTypeTag[T]) = gttag
def groundTypeTag[T](implicit gttag: GroundTypeTag[T]) = gttag
}
|