Skip to content

Commit 4c659a3

Browse files
committed
Rename helper method.
1 parent 5733fdb commit 4c659a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,16 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
327327
if (tp.isType) TypeTree(tp)
328328
else if (prefixIsElidable(tp)) Ident(tp)
329329
else if (tp.symbol.is(Module) && ctx.owner.isContainedIn(tp.symbol.moduleClass))
330-
correctForPath(This(tp.symbol.moduleClass.asClass))
330+
followOuterLinks(This(tp.symbol.moduleClass.asClass))
331331
else tp.prefix match {
332-
case pre: SingletonType => correctForPath(singleton(pre)).select(tp)
332+
case pre: SingletonType => followOuterLinks(singleton(pre)).select(tp)
333333
case pre => SelectFromTypeTree(TypeTree(pre), tp)
334334
} // no checks necessary
335335

336336
def ref(sym: Symbol)(implicit ctx: Context): Tree =
337337
ref(NamedType(sym.owner.thisType, sym.name, sym.denot))
338338

339-
private def correctForPath(t: Tree)(implicit ctx: Context) = t match {
339+
private def followOuterLinks(t: Tree)(implicit ctx: Context) = t match {
340340
case t: This if ctx.erasedTypes && !(t.symbol == ctx.owner.enclosingClass || t.symbol.isStaticOwner) =>
341341
// after erasure outer paths should be respected
342342
new ExplicitOuter.OuterOps(ctx).path(t.tpe.widen.classSymbol)

0 commit comments

Comments
 (0)