Skip to content

Commit 1485357

Browse files
committed
Drop more occurrences
1 parent 6400ffa commit 1485357

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

compiler/src/dotty/tools/dotc/transform/PCPCheckAndHeal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class PCPCheckAndHeal(@constructorOnly ictx: Context) extends TreeMapWithStages(
270270
object PCPCheckAndHeal {
271271
import tpd._
272272

273-
class QuoteTypeTags(span: Span)(using ctx: Context) {
273+
class QuoteTypeTags(span: Span)(using Context) {
274274

275275
private val tags = collection.mutable.LinkedHashMap.empty[Symbol, TypeDef]
276276

compiler/src/dotty/tools/dotc/transform/ParamForwarding.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ParamForwarding extends MiniPhase with IdentityDenotTransformer:
3838

3939
val phaseName: String = "paramForwarding"
4040

41-
def transformIfParamAlias(mdef: ValOrDefDef)(using ctx: Context): Tree =
41+
def transformIfParamAlias(mdef: ValOrDefDef)(using Context): Tree =
4242

4343
def inheritedAccessor(sym: Symbol)(using Context): Symbol =
4444
val candidate = sym.owner.asClass.superClass

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
149149
case _ =>
150150
processMemberDef(tree)
151151

152-
private def checkInferredWellFormed(tree: Tree)(using ctx: Context): Unit = tree match
152+
private def checkInferredWellFormed(tree: Tree)(using Context): Unit = tree match
153153
case tree: TypeTree
154154
if tree.span.isZeroExtent
155155
// don't check TypeTrees with non-zero extent;

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ trait Applications extends Compatibility {
987987
}
988988

989989
/** Typecheck an Apply node with a typed function and possibly-typed arguments coming from `proto` */
990-
def ApplyTo(app: untpd.Apply, fun: tpd.Tree, methRef: TermRef, proto: FunProto, resultType: Type)(using ctx: Context): tpd.Tree =
990+
def ApplyTo(app: untpd.Apply, fun: tpd.Tree, methRef: TermRef, proto: FunProto, resultType: Type)(using Context): tpd.Tree =
991991
val typer = ctx.typer
992992
if (proto.allArgTypesAreCurrent())
993993
typer.ApplyToTyped(app, fun, methRef, proto.typedArgs(), resultType).result

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object Checking {
4747
* 1. the full inferred type is a TypeTree node
4848
* 2. the applied type causing the error, if different from (1)
4949
*/
50-
private def showInferred(msg: Message, app: Type, tpt: Tree)(using ctx: Context): Message =
50+
private def showInferred(msg: Message, app: Type, tpt: Tree)(using Context): Message =
5151
if tpt.isInstanceOf[TypeTree] then
5252
def subPart = if app eq tpt.tpe then "" else i" subpart $app of"
5353
msg.append(i" in$subPart inferred type ${tpt}")
@@ -91,7 +91,7 @@ object Checking {
9191
* @param tpt If `tree` is synthesized from a type in a TypeTree,
9292
* the original TypeTree, or EmptyTree otherwise.
9393
*/
94-
def checkAppliedType(tree: AppliedTypeTree, tpt: Tree = EmptyTree)(using ctx: Context): Unit = {
94+
def checkAppliedType(tree: AppliedTypeTree, tpt: Tree = EmptyTree)(using Context): Unit = {
9595
val AppliedTypeTree(tycon, args) = tree
9696
// If `args` is a list of named arguments, return corresponding type parameters,
9797
// otherwise return type parameters unchanged
@@ -629,7 +629,7 @@ object Checking {
629629
}
630630

631631
/** Check that an enum case extends its enum class */
632-
def checkEnumParentOK(cls: Symbol)(using ctx: Context): Unit =
632+
def checkEnumParentOK(cls: Symbol)(using Context): Unit =
633633
val enumCase =
634634
if cls.isAllOf(EnumCase) then cls
635635
else if cls.isAnonymousClass && cls.owner.isAllOf(EnumCase) then cls.owner
@@ -1151,7 +1151,7 @@ trait Checking {
11511151
}
11521152

11531153
/** check that annotation `annot` is applicable to symbol `sym` */
1154-
def checkAnnotApplicable(annot: Tree, sym: Symbol)(using ctx: Context): Boolean =
1154+
def checkAnnotApplicable(annot: Tree, sym: Symbol)(using Context): Boolean =
11551155
!ctx.reporter.reportsErrorsFor { implicit ctx =>
11561156
val annotCls = Annotations.annotClass(annot)
11571157
val pos = annot.sourcePos
@@ -1185,7 +1185,7 @@ trait ReChecking extends Checking {
11851185
override def checkEnum(cdef: untpd.TypeDef, cls: Symbol, firstParent: Symbol)(implicit ctx: Context): Unit = ()
11861186
override def checkRefsLegal(tree: tpd.Tree, badOwner: Symbol, allowed: (Name, Symbol) => Boolean, where: String)(implicit ctx: Context): Unit = ()
11871187
override def checkEnumCaseRefsLegal(cdef: TypeDef, enumCtx: Context)(implicit ctx: Context): Unit = ()
1188-
override def checkAnnotApplicable(annot: Tree, sym: Symbol)(using ctx: Context): Boolean = true
1188+
override def checkAnnotApplicable(annot: Tree, sym: Symbol)(using Context): Boolean = true
11891189
}
11901190

11911191
trait NoChecking extends ReChecking {

0 commit comments

Comments
 (0)