Skip to content

Commit 25c04af

Browse files
committed
Fix typo and renaming
1 parent b573150 commit 25c04af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/core/Flags.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ object Flags {
548548
/** Assumed to be pure */
549549
final val StableOrErased = Stable | Erased
550550

551-
/** Labeled `private`, `final`, `transparent`, or `erasedd` */
551+
/** Labeled `private`, `final`, `transparent`, or `erased` */
552552
final val EffectivelyFinal = Private | Final | Transparent | Erased
553553

554554
/** A private method */

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
158158

159159
/** If selection is a quote or splice node, record that fact in the current compilation unit.
160160
*/
161-
private def handleMeta(sym: Symbol)(implicit ctx: Context): Unit =
161+
private def reportMeta(sym: Symbol)(implicit ctx: Context): Unit =
162162
if (sym.isSplice || sym.isQuote) ctx.compilationUnit.containsQuotesOrSplices = true
163163

164164
private object dropInlines extends TreeMap {
@@ -171,13 +171,13 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
171171
override def transform(tree: Tree)(implicit ctx: Context): Tree =
172172
try tree match {
173173
case tree: Ident if !tree.isType =>
174-
handleMeta(tree.symbol)
174+
reportMeta(tree.symbol)
175175
tree.tpe match {
176176
case tpe: ThisType => This(tpe.cls).withPos(tree.pos)
177177
case _ => tree
178178
}
179179
case tree @ Select(qual, name) =>
180-
handleMeta(tree.symbol)
180+
reportMeta(tree.symbol)
181181
if (name.isTypeName) {
182182
Checking.checkRealizable(qual.tpe, qual.pos.focus)
183183
super.transform(tree)(ctx.addMode(Mode.Type))

0 commit comments

Comments
 (0)