Skip to content

Commit da1fbd1

Browse files
committed
Rename Staging.Reifier to Stager
1 parent f8aa9b5 commit da1fbd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Staging extends MacroTransformWithImplicits {
4949
if (ctx.compilationUnit.needsStaging) super.run
5050

5151
protected def newTransformer(implicit ctx: Context): Transformer =
52-
new Reifier(inQuote = false, null, 0, new LevelInfo)
52+
new Stager(inQuote = false, null, 0, new LevelInfo)
5353

5454
private class LevelInfo {
5555
/** A map from locally defined symbols to the staging levels of their definitions */
@@ -64,13 +64,13 @@ class Staging extends MacroTransformWithImplicits {
6464
* and `l == -1` is code inside a top level splice (in an inline method).
6565
* @param levels a stacked map from symbols to the levels in which they were defined
6666
*/
67-
private class Reifier(inQuote: Boolean, val outer: Reifier, level: Int, levels: LevelInfo) extends ImplicitsTransformer {
67+
private class Stager(inQuote: Boolean, val outer: Stager, level: Int, levels: LevelInfo) extends ImplicitsTransformer {
6868
import levels._
6969
assert(level >= -1)
7070

7171
/** A nested reifier for a quote (if `isQuote = true`) or a splice (if not) */
72-
def nested(isQuote: Boolean)(implicit ctx: Context): Reifier = {
73-
new Reifier(isQuote, this, if (isQuote) level + 1 else level - 1, levels)
72+
def nested(isQuote: Boolean)(implicit ctx: Context): Stager = {
73+
new Stager(isQuote, this, if (isQuote) level + 1 else level - 1, levels)
7474
}
7575

7676
/** A map from type ref T to expressions of type `quoted.Type[T]`".
@@ -272,7 +272,7 @@ class Staging extends MacroTransformWithImplicits {
272272
*
273273
* type T' = ~quoted.Type[T]
274274
*
275-
* to the quoted text and rename T to T' in it. This is done later in `reify` via
275+
* to the quoted text and rename T to T' in it. This is done later via
276276
* `addTags`. `checkLevel` itself only records what needs to be done in the
277277
* `typeTagOfRef` field of the current `Splice` structure.
278278
*/

0 commit comments

Comments
 (0)