Skip to content

Commit 9d48568

Browse files
committed
Rename nestedPairsType to nestedPairsTypeTree
1 parent 9156408 commit 9d48568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,11 +1346,11 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
13461346
def tupleTypeTree(elems: List[Tree])(implicit ctx: Context): Tree = {
13471347
val arity = elems.length
13481348
if (arity <= Definitions.MaxTupleArity && defn.TupleType(arity) != null) AppliedTypeTree(TypeTree(defn.TupleType(arity)), elems)
1349-
else nestedPairsType(elems)
1349+
else nestedPairsTypeTree(elems)
13501350
}
13511351

13521352
/** Creates the nested pairs type tree repesentation of the type trees in `ts` */
1353-
def nestedPairsType(ts: List[Tree])(implicit ctx: Context): Tree =
1353+
def nestedPairsTypeTree(ts: List[Tree])(implicit ctx: Context): Tree =
13541354
ts.foldRight[Tree](TypeTree(defn.UnitType))((x, acc) => AppliedTypeTree(TypeTree(defn.PairType), x :: acc :: Nil))
13551355

13561356
/** Replaces all positions in `tree` with zero-extent positions */

0 commit comments

Comments
 (0)