File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
src/main/scala/scala/async/internal Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ object AsyncMacro {
10
10
new AsyncMacro { self =>
11
11
val c : scala.reflect.macros.Context { val universe : global.type } = c0.asInstanceOf [scala.reflect.macros.Context { val universe : global.type }]
12
12
val global : powerContext.universe.type = powerContext.universe
13
- val macroApplication : global.Tree = c0.macroApplication.asInstanceOf [global.Tree ]
14
13
// This member is required by `AsyncTransform`:
15
14
val asyncBase : AsyncBase = base
16
15
// These members are required by `ExprBuilder`:
@@ -26,8 +25,7 @@ private[async] trait AsyncMacro
26
25
27
26
val c : scala.reflect.macros.Context { val universe : global.type }
28
27
val global : Global
29
- val macroApplication : global.Tree
30
28
31
- lazy val macroPos = macroApplication.pos.makeTransparent
32
- def atMacroPos (t : global.Tree ) = global .atPos(macroPos)(t)
29
+ lazy val macroPos = c. macroApplication.pos.makeTransparent
30
+ def atMacroPos (t : global.Tree ) = c.universe .atPos(macroPos)(t)
33
31
}
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ trait AsyncTransform {
123
123
}
124
124
125
125
AsyncUtils .vprintln(s " In file ' $location': " )
126
- AsyncUtils .vprintln(s " ${macroApplication}" )
126
+ AsyncUtils .vprintln(s " ${c. macroApplication}" )
127
127
AsyncUtils .vprintln(s " ANF transform expands to: \n $anfTree" )
128
128
states foreach (s => AsyncUtils .vprintln(s))
129
129
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ private[async] trait TransformUtils {
83
83
}
84
84
85
85
val NonFatalClass = rootMirror.staticModule(" scala.util.control.NonFatal" )
86
- val Async_await = asyncBase.awaitMethod(c.universe)(macroApplication.symbol).ensuring(_ != NoSymbol )
86
+ val Async_await = asyncBase.awaitMethod(c.universe)(c. macroApplication.symbol).ensuring(_ != NoSymbol )
87
87
}
88
88
89
89
def isSafeToInline (tree : Tree ) = {
You can’t perform that action at this time.
0 commit comments