Skip to content

Commit 054f343

Browse files
committed
More consistent naming
1 parent 1b05897 commit 054f343

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/transform/init/Checking.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)