You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case _ =>throwException("Match error in SymRef/TypeOrBounds/ClassDef. This should not happen, please open an issue. "+ convertTypeOrBoundsToReference(reflect)(qual))
86
+
}
87
+
88
+
// NOTE: This branch handles packages, which are now TypeRefs
89
+
case sym if sym.isTerm || sym.isTypeDef =>
90
+
convertTypeOrBoundsToReference(reflect)(qual) match {
91
+
caseTypeReference(label, link, xs, _) =>TypeReference(sym.name, link +"/"+ label, xs)
case _ =>throwException("Match error in SymRef/TypeOrBounds/Other. This should not happen, please open an issue. "+ convertTypeOrBoundsToReference(reflect)(qual))
95
+
}
96
+
case sym =>throwException("Match error in SymRef. This should not happen, please open an issue. "+ sym)
97
+
}
98
+
case _ =>
99
+
throwException("Match error in TypeRef. This should not happen, please open an issue. "+ convertTypeOrBoundsToReference(reflect)(qual))
78
100
}
79
101
caseTermRef(qual, typeName) =>
80
102
convertTypeOrBoundsToReference(reflect)(qual) match {
@@ -85,27 +107,9 @@ trait TastyTypeConverter {
85
107
86
108
// NOTE: old SymRefs are now either TypeRefs or TermRefs - the logic here needs to be moved into above branches
87
109
// NOTE: _.symbol on *Ref returns its symbol
88
-
caseSymRef(symbol, typeOrBounds) => symbol match {
89
-
// NOTE: Only TypeRefs can reference ClassDefSymbols
90
-
case reflect.IsClassDefSymbol(_) =>//Need to be split because these types have their own file
91
-
convertTypeOrBoundsToReference(reflect)(typeOrBounds) match {
92
-
caseTypeReference(label, link, xs, _) =>TypeReference(symbol.name, link +"/"+ label, xs, true)
case _ =>throwException("Match error in SymRef/TypeOrBounds/ClassDef. This should not happen, please open an issue. "+ convertTypeOrBoundsToReference(reflect)(typeOrBounds))
96
-
}
97
-
98
-
// NOTE: This branch handles packages, which are now TypeRefs
99
-
case reflect.IsTermSymbol(_) | reflect.IsTypeDefSymbol(_) =>
100
-
convertTypeOrBoundsToReference(reflect)(typeOrBounds) match {
101
-
caseTypeReference(label, link, xs, _) =>TypeReference(symbol.name, link +"/"+ label, xs)
case _ =>throwException("Match error in SymRef/TypeOrBounds/Other. This should not happen, please open an issue. "+ convertTypeOrBoundsToReference(reflect)(typeOrBounds))
105
-
}
106
-
case _ =>throwException("Match error in SymRef. This should not happen, please open an issue. "+ symbol)
107
-
}
108
-
case _ =>throwException("No match for type in conversion to Reference. This should not happen, please open an issue. "+ tp)
110
+
// case SymRef(symbol, typeOrBounds) => symbol match {
111
+
// }
112
+
// case _ => throw Exception("No match for type in conversion to Reference. This should not happen, please open an issue. " + tp)
0 commit comments