File tree 3 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ object Config {
161
161
final val showCompletions = false
162
162
163
163
/** If set, enables tracing */
164
- final val tracingEnabled = false
164
+ final val tracingEnabled = true
165
165
166
166
/** Initial capacity of uniques HashMap.
167
167
* Note: This MUST BE a power of two to work with util.HashSet
Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ class Namer { typer: Typer =>
1078
1078
}
1079
1079
1080
1080
/** Typecheck `tree` during completion using `typed`, and remember result in TypedAhead map */
1081
- def typedAheadImpl (tree : Tree , typed : untpd.Tree => tpd.Tree )(implicit ctx : Context ): tpd.Tree = {
1081
+ def typedAhead (tree : Tree , typed : untpd.Tree => tpd.Tree )(implicit ctx : Context ): tpd.Tree = {
1082
1082
val xtree = expanded(tree)
1083
1083
xtree.getAttachment(TypedAhead ) match {
1084
1084
case Some (ttree) => ttree
@@ -1090,10 +1090,10 @@ class Namer { typer: Typer =>
1090
1090
}
1091
1091
1092
1092
def typedAheadType (tree : Tree , pt : Type = WildcardType )(implicit ctx : Context ): tpd.Tree =
1093
- typedAheadImpl (tree, typer.typed(_, pt)(ctx retractMode Mode .PatternOrTypeBits addMode Mode .Type ))
1093
+ typedAhead (tree, typer.typed(_, pt)(ctx retractMode Mode .PatternOrTypeBits addMode Mode .Type ))
1094
1094
1095
1095
def typedAheadExpr (tree : Tree , pt : Type = WildcardType )(implicit ctx : Context ): tpd.Tree =
1096
- typedAheadImpl (tree, typer.typed(_, pt)(ctx retractMode Mode .PatternOrTypeBits ))
1096
+ typedAhead (tree, typer.typed(_, pt)(ctx retractMode Mode .PatternOrTypeBits ))
1097
1097
1098
1098
def typedAheadAnnotation (tree : Tree )(implicit ctx : Context ): tpd.Tree =
1099
1099
typedAheadExpr(tree, defn.AnnotationType )
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ class Typer extends Namer
525
525
templ1 = cpy.Template (templ)(parents = untpd.TypeTree (pt) :: Nil )
526
526
templ1.parents foreach {
527
527
case parent : RefTree =>
528
- typedAheadImpl (parent, tree => inferTypeParams(typedType(tree), pt))
528
+ typedAhead (parent, tree => inferTypeParams(typedType(tree), pt))
529
529
case _ =>
530
530
}
531
531
val x = tpnme.ANON_CLASS
You can’t perform that action at this time.
0 commit comments