summaryrefslogtreecommitdiff
path: root/src/library/scala/reflect/macro/Context.scala
blob: d0a2787fdf9ca26e51c2370635fa400838a556b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package scala.reflect
package macro

trait Context extends api.Universe {
  
  /** Mark a variable as captured; i.e. force boxing in a *Ref type.
   */
  def captureVariable(vble: Symbol): Unit
  
  /** Mark given identifier as a reference to a captured variable itself
   *  suppressing dereferencing with the `elem` field.
   */
  def referenceCapturedVariable(id: Ident): Tree

}