File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,10 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
275
275
if (homogenizedView && mods.flags.isTypeFlags) flagMask &~= Implicit // drop implicit from classes
276
276
val flags = mods.flags & flagMask
277
277
val flagsText = if (flags.isEmpty) " " else keywordStr((mods.flags & flagMask).toString)
278
- Text (mods.annotations.map(annotText), " " ) ~~ flagsText ~~ (Str (kw) provided ! suppressKw)
278
+ val annotations =
279
+ if (YprintUser ) mods.annotations.filter(_.tpe != defn.SourceFileAnnotType )
280
+ else mods.annotations
281
+ Text (annotations.map(annotText), " " ) ~~ flagsText ~~ (Str (kw) provided ! suppressKw)
279
282
}
280
283
281
284
def varianceText (mods : untpd.Modifiers ) =
You can’t perform that action at this time.
0 commit comments