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 @@ -281,7 +281,10 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
281
281
if (homogenizedView && mods.flags.isTypeFlags) flagMask &~= Implicit // drop implicit from classes
282
282
val flags = mods.flags & flagMask
283
283
val flagsText = if (flags.isEmpty) " " else keywordStr((mods.flags & flagMask).toString)
284
- Text (mods.annotations.map(annotText), " " ) ~~ flagsText ~~ (Str (kw) provided ! suppressKw)
284
+ val annotations =
285
+ if (YprintUser ) mods.annotations.filter(_.tpe != defn.SourceFileAnnotType )
286
+ else mods.annotations
287
+ Text (annotations.map(annotText), " " ) ~~ flagsText ~~ (Str (kw) provided ! suppressKw)
285
288
}
286
289
287
290
def varianceText (mods : untpd.Modifiers ) =
You can’t perform that action at this time.
0 commit comments