@@ -81,7 +81,7 @@ object Checking {
81
81
// see spec 5.1 about "Template Evaluation".
82
82
// https://www.scala-lang.org/files/archive/spec/2.13/05-classes-and-objects.html
83
83
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) {
85
85
val cls = ctor.owner
86
86
val classDef = cls.defTree
87
87
if (! classDef.isEmpty) {
@@ -120,20 +120,20 @@ object Checking {
120
120
tpl.parents.foreach {
121
121
case tree @ Block (_, parent) =>
122
122
val (ctor, _, _) = decomposeCall(parent)
123
- checkCtor (ctor.symbol, parent.tpe, tree)
123
+ checkConstructor (ctor.symbol, parent.tpe, tree)
124
124
125
125
case tree @ Apply (Block (_, parent), _) =>
126
126
val (ctor, _, _) = decomposeCall(parent)
127
- checkCtor (ctor.symbol, tree.tpe, tree)
127
+ checkConstructor (ctor.symbol, tree.tpe, tree)
128
128
129
129
case parent : Apply =>
130
130
val (ctor, _, argss) = decomposeCall(parent)
131
- checkCtor (ctor.symbol, parent.tpe, parent)
131
+ checkConstructor (ctor.symbol, parent.tpe, parent)
132
132
133
133
case ref =>
134
134
val cls = ref.tpe.classSymbol.asClass
135
135
if (! state.parentsInited.contains(cls) && cls.primaryConstructor.exists)
136
- checkCtor (cls.primaryConstructor, ref.tpe, ref)
136
+ checkConstructor (cls.primaryConstructor, ref.tpe, ref)
137
137
}
138
138
139
139
// check class body
0 commit comments