File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3619,6 +3619,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3619
3619
def isClassConstructor : Boolean
3620
3620
3621
3621
/** Is this the super accessor? */
3622
+ @ experimental // TODO when stable, remove `dotty.tools.scaladoc.tasty.ClassLikeSupport.isSuperBridgeMethod` and use this method
3622
3623
def isSuperAccessor : Boolean
3623
3624
3624
3625
/** Is this the definition of a type? */
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ trait ClassLikeSupport:
249
249
extension (c : ClassDef )
250
250
def extractMembers : Seq [Member ] = {
251
251
val inherited = c.getNonTrivialInheritedMemberTrees.collect {
252
- case dd : DefDef if ! dd.symbol.isClassConstructor && ! (dd.symbol.isSuperAccessor || dd.symbol.isDefaultHelperMethod) => dd
252
+ case dd : DefDef if ! dd.symbol.isClassConstructor && ! (dd.symbol.isSuperBridgeMethod || dd.symbol.isDefaultHelperMethod) => dd
253
253
case other => other
254
254
}
255
255
c.membersToDocument.flatMap(parseMember(c)) ++
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ object SyntheticsSupport:
21
21
import reflect ._
22
22
s.flags.is(Flags .Synthetic ) || s.flags.is(Flags .FieldAccessor ) || s.isDefaultHelperMethod
23
23
24
+ // TODO remove and use `SymbolMethods.isSuperAccessor`
24
25
def isSuperBridgeMethod : Boolean = s.name.contains(" $super$" )
25
26
26
27
def isDefaultHelperMethod : Boolean = " .*\\ $default\\ $\\ d+$" .r.matches(s.name)
You can’t perform that action at this time.
0 commit comments