File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1
- package dotty .tools .dotc
2
- package ast
1
+ package dotty .tools .dotc .ast
3
2
4
- import core ._
5
- import ast . Trees ._
6
- import Contexts ._
7
- import Symbols ._
8
- import annotation . tailrec
3
+ import dotty . tools . dotc . ast . Trees ._
4
+ import dotty . tools . dotc . core . Contexts ._
5
+ import dotty . tools . dotc . core . Flags ._
6
+ import dotty . tools . dotc . core . Symbols ._
7
+ import dotty . tools . dotc . core . TypeError
9
8
10
- /** A TreeMap that maintains the necessary infrastructore to support
9
+ import scala .annotation .tailrec
10
+
11
+ /** A TreeMap that maintains the necessary infrastructure to support
11
12
* contxtual implicit searches (type-scope implicits are supported anyway).
13
+ *
14
+ * This incudes impicits defined in scope as well as imported implicits.
12
15
*/
13
- class TreeMapWithImplicits extends ast. tpd.TreeMap {
14
- import ast . tpd ._
16
+ class TreeMapWithImplicits extends tpd.TreeMap {
17
+ import tpd ._
15
18
16
19
protected def localCtx (tree : Tree )(implicit ctx : Context ): FreshContext = {
17
20
val sym = tree.symbol
18
- val owner = if (sym is Flags . PackageVal ) sym.moduleClass else sym
21
+ val owner = if (sym is PackageVal ) sym.moduleClass else sym
19
22
ctx.fresh.setTree(tree).setOwner(owner)
20
23
}
21
24
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ class ReifyQuotes extends MacroTransform {
303
303
}
304
304
)
305
305
}
306
- /* Lambdas are generated outside the quote that is beeing reified (i.e. in outer.rctx. owner).
306
+ /* Lambdas are generated outside the quote that is beeing reified (i.e. in outer.owner).
307
307
* In case the case that level == -1 the code is not in a quote, it is in an inline method,
308
308
* hence we should take that as owner directly.
309
309
*/
You can’t perform that action at this time.
0 commit comments