@@ -81,7 +81,7 @@ object Checking {
8181 // see spec 5.1 about "Template Evaluation".
8282 // https://www.scala-lang.org/files/archive/spec/2.13/05-classes-and-objects.html
8383
84- def checkCtor (ctor : Symbol , tp : Type , source : Tree )(implicit state : State ): Unit = traceOp(" checking " + ctor.show, init) {
84+ def checkConstructor (ctor : Symbol , tp : Type , source : Tree )(implicit state : State ): Unit = traceOp(" checking " + ctor.show, init) {
8585 val cls = ctor.owner
8686 val classDef = cls.defTree
8787 if (! classDef.isEmpty) {
@@ -120,20 +120,20 @@ object Checking {
120120 tpl.parents.foreach {
121121 case tree @ Block (_, parent) =>
122122 val (ctor, _, _) = decomposeCall(parent)
123- checkCtor (ctor.symbol, parent.tpe, tree)
123+ checkConstructor (ctor.symbol, parent.tpe, tree)
124124
125125 case tree @ Apply (Block (_, parent), _) =>
126126 val (ctor, _, _) = decomposeCall(parent)
127- checkCtor (ctor.symbol, tree.tpe, tree)
127+ checkConstructor (ctor.symbol, tree.tpe, tree)
128128
129129 case parent : Apply =>
130130 val (ctor, _, argss) = decomposeCall(parent)
131- checkCtor (ctor.symbol, parent.tpe, parent)
131+ checkConstructor (ctor.symbol, parent.tpe, parent)
132132
133133 case ref =>
134134 val cls = ref.tpe.classSymbol.asClass
135135 if (! state.parentsInited.contains(cls) && cls.primaryConstructor.exists)
136- checkCtor (cls.primaryConstructor, ref.tpe, ref)
136+ checkConstructor (cls.primaryConstructor, ref.tpe, ref)
137137 }
138138
139139 // check class body
0 commit comments