Skip to content

Commit ae32600

Browse files
committed
Fix typo
1 parent 25024c2 commit ae32600

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
268268
def apply(symbol: Symbol, rhsFn: List[List[Tree]] => Option[Term]): DefDef =
269269
assert(symbol.isTerm, s"expected a term symbol but received $symbol")
270270
withDefaultPos(tpd.DefDef(symbol.asTerm, prefss =>
271-
xCheckMacroedOwners(xCheckMacroValidExpr(rhsFn(prefss)), symbol).getOrElse(tpd.EmptyTree)
271+
xCheckedMacroOwners(xCheckMacroValidExpr(rhsFn(prefss)), symbol).getOrElse(tpd.EmptyTree)
272272
))
273273
def copy(original: Tree)(name: String, paramss: List[ParamClause], tpt: TypeTree, rhs: Option[Term]): DefDef =
274-
tpd.cpy.DefDef(original)(name.toTermName, paramss, tpt, xCheckMacroedOwners(rhs, original.symbol).getOrElse(tpd.EmptyTree))
274+
tpd.cpy.DefDef(original)(name.toTermName, paramss, tpt, xCheckedMacroOwners(rhs, original.symbol).getOrElse(tpd.EmptyTree))
275275
def unapply(ddef: DefDef): (String, List[ParamClause], TypeTree, Option[Term]) =
276276
(ddef.name.toString, ddef.paramss, ddef.tpt, optional(ddef.rhs))
277277
end DefDef
@@ -297,9 +297,9 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
297297

298298
object ValDef extends ValDefModule:
299299
def apply(symbol: Symbol, rhs: Option[Term]): ValDef =
300-
tpd.ValDef(symbol.asTerm, xCheckMacroedOwners(xCheckMacroValidExpr(rhs), symbol).getOrElse(tpd.EmptyTree))
300+
tpd.ValDef(symbol.asTerm, xCheckedMacroOwners(xCheckMacroValidExpr(rhs), symbol).getOrElse(tpd.EmptyTree))
301301
def copy(original: Tree)(name: String, tpt: TypeTree, rhs: Option[Term]): ValDef =
302-
tpd.cpy.ValDef(original)(name.toTermName, tpt, xCheckMacroedOwners(xCheckMacroValidExpr(rhs), original.symbol).getOrElse(tpd.EmptyTree))
302+
tpd.cpy.ValDef(original)(name.toTermName, tpt, xCheckedMacroOwners(xCheckMacroValidExpr(rhs), original.symbol).getOrElse(tpd.EmptyTree))
303303
def unapply(vdef: ValDef): (String, TypeTree, Option[Term]) =
304304
(vdef.name.toString, vdef.tpt, optional(vdef.rhs))
305305

@@ -802,7 +802,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
802802
object Lambda extends LambdaModule:
803803
def apply(owner: Symbol, tpe: MethodType, rhsFn: (Symbol, List[Tree]) => Tree): Block =
804804
val meth = dotc.core.Symbols.newAnonFun(owner, tpe)
805-
withDefaultPos(tpd.Closure(meth, tss => xCheckMacroedOwners(xCheckMacroValidExpr(rhsFn(meth, tss.head.map(withDefaultPos))), meth)))
805+
withDefaultPos(tpd.Closure(meth, tss => xCheckedMacroOwners(xCheckMacroValidExpr(rhsFn(meth, tss.head.map(withDefaultPos))), meth)))
806806

807807
def unapply(tree: Block): Option[(List[ValDef], Term)] = tree match {
808808
case Block((ddef @ DefDef(_, tpd.ValDefs(params) :: Nil, _, Some(body))) :: Nil, Closure(meth, _))
@@ -2934,7 +2934,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
29342934
/** Checks that all definitions in this tree have the expected owner.
29352935
* Nested definitions are ignored and assumed to be correct by construction.
29362936
*/
2937-
private def xCheckMacroedOwners(tree: Option[Tree], owner: Symbol): tree.type =
2937+
private def xCheckedMacroOwners(tree: Option[Tree], owner: Symbol): tree.type =
29382938
if xCheckMacro then
29392939
tree match
29402940
case Some(tree) =>
@@ -2945,7 +2945,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
29452945
/** Checks that all definitions in this tree have the expected owner.
29462946
* Nested definitions are ignored and assumed to be correct by construction.
29472947
*/
2948-
private def xCheckMacroedOwners(tree: Tree, owner: Symbol): tree.type =
2948+
private def xCheckedMacroOwners(tree: Tree, owner: Symbol): tree.type =
29492949
if xCheckMacro then
29502950
xCheckMacroOwners(tree, owner)
29512951
tree

0 commit comments

Comments
 (0)