File tree 2 files changed +6
-15
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty
2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ trait ClassLikeSupport:
485
485
486
486
487
487
def unwrapMemberInfo (c : ClassDef , symbol : Symbol ): MemberInfo =
488
- val baseTypeRepr = memberInfo(c, symbol)
488
+ val baseTypeRepr = typeForClass(c).memberType( symbol)
489
489
490
490
def isSyntheticEvidence (name : String ) =
491
491
if ! name.startsWith(NameKinds .EvidenceParamName .separator) then false else
@@ -554,4 +554,4 @@ trait ClassLikeSupport:
554
554
if parameters(0 ).symbol.flags.is(Flags .Given ) then " using "
555
555
else if parameters(0 ).symbol.flags.is(Flags .Implicit ) then " implicit "
556
556
else " "
557
- else " "
557
+ else " "
Original file line number Diff line number Diff line change @@ -34,25 +34,16 @@ object SyntheticsSupport:
34
34
c.constructor.leadingTypeParams.nonEmpty && end <= typesEnd + 1
35
35
}
36
36
37
- /* We need there to filter out symbols with certain flagsets, because these symbols come from compiler and TASTY can't handle them well.
38
- They are valdefs that describe case companion objects and cases from enum.
39
- TASTY crashed when calling _.tree on them.
40
- */
41
-
42
37
def getSupertypes (using Quotes )(c : reflect.ClassDef ) =
43
38
c.symbol.typeRef.baseClasses.map(b => b -> c.symbol.typeRef.baseType(b)).tail
44
39
45
40
def typeForClass (using Quotes )(c : reflect.ClassDef ): reflect.TypeRepr =
46
41
c.symbol.typeRef.appliedTo(c.symbol.typeMembers.filter(_.isTypeParam).map(_.typeRef))
47
42
48
- def memberInfo (using Quotes )(c : reflect.ClassDef , symbol : reflect.Symbol ): reflect.TypeRepr =
49
- import reflect ._
50
- import dotty .tools .dotc
51
- given dotc .core.Contexts .Context = quotes.asInstanceOf [scala.quoted.runtime.impl.QuotesImpl ].ctx
52
- typeForClass(c).asInstanceOf [dotc.core.Types .Type ]
53
- .memberInfo(symbol.asInstanceOf [dotc.core.Symbols .Symbol ])
54
- .asInstanceOf [TypeRepr ]
55
-
43
+ /* We need there to filter out symbols with certain flagsets, because these symbols come from compiler and TASTY can't handle them well.
44
+ They are valdefs that describe case companion objects and cases from enum.
45
+ TASTY crashed when calling _.tree on them.
46
+ */
56
47
private def hackGetmembers (using Quotes )(rsym : reflect.Symbol ): List [reflect.Symbol ] = {
57
48
import reflect ._
58
49
import dotty .tools .dotc
You can’t perform that action at this time.
0 commit comments