We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4530376 commit f8fa97cCopy full SHA for f8fa97c
compiler/src/dotty/tools/dotc/transform/Staging.scala
@@ -68,6 +68,7 @@ class Staging extends MacroTransform {
68
new TreeTraverser {
69
private[this] var sources: List[SourceFile] = ctx.source :: Nil
70
def traverse(tree: tpd.Tree)(implicit ctx: Context): Unit = {
71
+ assert(ctx.source == sources.head)
72
if (!tree.isEmpty && !tree.isInstanceOf[untpd.TypedSplice] && ctx.typerState.isGlobalCommittable) {
73
if (!tree.isType) { // TODO also check types, currently we do not add Inlined(EmptyTree, _, _) for types. We should.
74
val currentSource = sources.head
0 commit comments