File tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,12 @@ class MacroAnnotations(phase: IdentityDenotTransformer):
134
134
else if annotated.isClass && annotated.owner.is(Package ) /* && !sym.isClass*/ then
135
135
report.error(i " macro annotation can not add top-level ${sym.showKind}. $annot tried to add $sym. " , annot.tree)
136
136
137
+ /**
138
+ * Enter the symbols generated by MacroAnnotations
139
+ */
137
140
private def enterMissingSymbols (tree : DefTree )(using Context ) = new TreeTraverser {
138
141
def traverse (tree : tpd.Tree )(using Context ): Unit = tree match
139
142
case tdef @ TypeDef (_, template : Template ) =>
140
- // for tree <- template.constr :: template.body do
141
143
val isSymbolInDecls = tdef.symbol.asClass.info.decls.toList.toSet
142
144
for tree <- template.body do
143
145
if tree.symbol.owner != tdef.symbol then
You can’t perform that action at this time.
0 commit comments