blob: fb77405d37a66ac98df514b83190b962ba030cae (
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
27
28
29
30
31
32
33
34
|
package scala.reflect.makro
import language.experimental.macros
// todo. introduce context hierarchy
// the most lightweight context should just expose the stuff from the SIP
// the full context should include all traits from scala.reflect.makro (and probably reside in scala-compiler.jar)
trait Context extends Aliases
with CapturedVariables
with Enclosures
with Infrastructure
with Names
with Reifiers
with FrontEnds
with Settings
with Typers
with Exprs
with TypeTags
with Util {
/** The mirror that corresponds to the compile-time universe */
val mirror: Universe
/** The type of the prefix tree from which the macro is selected */
type PrefixType
/** The prefix tree from which the macro is selected */
val prefix: Expr[PrefixType]
/** Alias to the underlying mirror's reify */
// implementation is magically hardwired to `scala.reflect.reify.Taggers`
def reify[T](expr: T): Expr[T] = macro ???
}
|