File tree 1 file changed +2
-8
lines changed
compiler/src/dotty/tools/dotc/transform 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,9 @@ package dotc
3
3
package transform
4
4
5
5
import core ._
6
+ import Contexts .Context , Symbols ._ , Decorators ._
6
7
import MegaPhase ._
7
- import Contexts .Context
8
- import Symbols ._ , Decorators ._ , Types ._
9
8
import ast .Trees ._
10
- import dotty .tools .dotc .ast .tpd
11
-
12
-
13
- import scala .collection .immutable .::
14
-
15
9
16
10
/** Rewrite `{ stats; expr}.f(args) }` to `{ stats; expr.f(args) }` before
17
11
* proceeding, but leave closures alone. This is necessary to be able to
@@ -22,7 +16,7 @@ class LetOverApply extends MiniPhase:
22
16
23
17
override def phaseName : String = " letOverApply"
24
18
25
- override def transformApply (tree : tpd. Apply )(using Context ): tpd. Tree =
19
+ override def transformApply (tree : Apply )(using Context ): Tree =
26
20
tree.fun match
27
21
case Select (blk @ Block (stats, expr), name) if ! expr.isInstanceOf [Closure ] =>
28
22
cpy.Block (blk)(stats,
You can’t perform that action at this time.
0 commit comments