File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/main/scala/dotty/dokka/tasty Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ trait ClassLikeSupport:
178178 val companion = classDef.symbol.getCompanionSymbol.map(_.tree.asInstanceOf [ClassDef ]).get
179179
180180 val enumVals = companion.membersToDocument.collect {
181- case vd : ValDef if ! isSyntheticField(vd.symbol, classDef ) && vd.symbol.flags.is(Flags .Enum ) && vd.symbol.flags.is(Flags .Case ) => vd
181+ case vd : ValDef if ! isSyntheticField(vd.symbol) && vd.symbol.flags.is(Flags .Enum ) && vd.symbol.flags.is(Flags .Case ) => vd
182182 }.toList.map(parseValDef(_))
183183
184184 val enumTypes = companion.membersToDocument.collect {
Original file line number Diff line number Diff line change @@ -37,11 +37,9 @@ trait SyntheticsSupport:
3737
3838 def getAllMembers : List [Symbol ] = hackGetAllMembers(self.reflect)(s)
3939
40- def isSyntheticField (c : Symbol , classDef : ClassDef ) =
40+ def isSyntheticField (c : Symbol ) =
4141 c.flags.is(Flags .CaseAcessor ) || c.flags.is(Flags .Object )
4242
43- def isSyntheticField (c : Symbol ) = c.flags.is(Flags .CaseAcessor ) || c.flags.is(Flags .Object )
44-
4543 def isValidPos (pos : Position ) =
4644 pos.exists && pos.start != pos.end
4745
@@ -102,8 +100,6 @@ trait SyntheticsSupport:
102100 val cSym = c.symbol.asInstanceOf [dotc.core.Symbols .Symbol ]
103101 cSym.typeRef.appliedTo(cSym.typeParams.map(_.typeRef)).asInstanceOf [r.Type ]
104102
105- def hackIsLeftAssoc (d : Symbol ): Boolean = ! d.name.endsWith(" :" )
106-
107103 object MatchTypeCase :
108104 def unapply (tpe : Type ): Option [(TypeOrBounds , TypeOrBounds )] =
109105 tpe match
You can’t perform that action at this time.
0 commit comments