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.
consume update
scaladoc
1 parent 644bd7f commit fe8937dCopy full SHA for fe8937d
scaladoc/src/dotty/tools/scaladoc/tasty/ClassLikeSupport.scala
@@ -25,9 +25,10 @@ trait ClassLikeSupport:
25
def getExtraModifiers(): Seq[Modifier] =
26
var mods = SymOps.getExtraModifiers(symbol)()
27
if ccEnabled && symbol.flags.is(Flags.Mutable) then
28
- mods :+= Modifier.Update
29
- if ccEnabled && symbol.hasAnnotation(cc.CaptureDefs.ConsumeAnnot) then
30
- mods :+= Modifier.Consume
+ if symbol.hasAnnotation(cc.CaptureDefs.ConsumeAnnot) then
+ mods :+= Modifier.Consume
+ else
31
+ mods :+= Modifier.Update
32
mods
33
}
34
0 commit comments