File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ object Config {
161161 final val showCompletions = false
162162
163163 /** If set, enables tracing */
164- final val tracingEnabled = false
164+ final val tracingEnabled = true
165165
166166 /** Initial capacity of uniques HashMap.
167167 * 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 =>
10781078 }
10791079
10801080 /** 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 = {
10821082 val xtree = expanded(tree)
10831083 xtree.getAttachment(TypedAhead ) match {
10841084 case Some (ttree) => ttree
@@ -1090,10 +1090,10 @@ class Namer { typer: Typer =>
10901090 }
10911091
10921092 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 ))
10941094
10951095 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 ))
10971097
10981098 def typedAheadAnnotation (tree : Tree )(implicit ctx : Context ): tpd.Tree =
10991099 typedAheadExpr(tree, defn.AnnotationType )
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ class Typer extends Namer
525525 templ1 = cpy.Template (templ)(parents = untpd.TypeTree (pt) :: Nil )
526526 templ1.parents foreach {
527527 case parent : RefTree =>
528- typedAheadImpl (parent, tree => inferTypeParams(typedType(tree), pt))
528+ typedAhead (parent, tree => inferTypeParams(typedType(tree), pt))
529529 case _ =>
530530 }
531531 val x = tpnme.ANON_CLASS
You can’t perform that action at this time.
0 commit comments