File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
src/main/scala/scala/async/internal Expand file tree Collapse file tree 2 files changed +1
-13
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 callSiteTyper : global.analyzer.Typer = powerContext.callsiteTyper
14
13
val macroApplication : global.Tree = c0.macroApplication.asInstanceOf [global.Tree ]
15
14
// This member is required by `AsyncTransform`:
16
15
val asyncBase : AsyncBase = base
@@ -22,13 +21,11 @@ object AsyncMacro {
22
21
}
23
22
24
23
private [async] trait AsyncMacro
25
- extends TypingTransformers
26
- with AnfTransform with TransformUtils with Lifter
24
+ extends AnfTransform with TransformUtils with Lifter
27
25
with ExprBuilder with AsyncTransform with AsyncAnalysis with LiveVariables {
28
26
29
27
val c : scala.reflect.macros.Context { val universe : global.type }
30
28
val global : Global
31
- val callSiteTyper : global.analyzer.Typer
32
29
val macroApplication : global.Tree
33
30
34
31
lazy val macroPos = macroApplication.pos.makeTransparent
Original file line number Diff line number Diff line change @@ -206,15 +206,6 @@ private[async] trait TransformUtils {
206
206
}
207
207
}
208
208
209
- abstract class MacroTypingTransformer extends TypingTransformer (callSiteTyper.context.unit) {
210
- currentOwner = enclosingOwner
211
- curTree = EmptyTree
212
-
213
- def currOwner : Symbol = currentOwner
214
-
215
- localTyper = global.analyzer.newTyper(callSiteTyper.context.make(unit = callSiteTyper.context.unit))
216
- }
217
-
218
209
def transformAt (tree : Tree )(f : PartialFunction [Tree , (TypingTransformApi => Tree )]) = {
219
210
typingTransform(tree)((tree, api) => {
220
211
if (f.isDefinedAt(tree)) f(tree)(api)
You can’t perform that action at this time.
0 commit comments