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))
case _ =>throwException("Match error in SymRef/TypeOrBounds/ClassDef. This should not happen, please open an issue. "+ convertTypeOrBoundsToReference(reflect)(typeOrBounds))
92
-
}
93
-
case reflect.IsTermSymbol(_) | reflect.IsTypeDefSymbol(_) =>
94
-
convertTypeOrBoundsToReference(reflect)(typeOrBounds) match {
95
-
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))
99
-
}
100
-
case _ =>throwException("Match error in SymRef. This should not happen, please open an issue. "+ symbol)
101
-
}
102
-
case _ =>throwException("No match for type in conversion to Reference. This should not happen, please open an issue. "+ tp)
107
+
108
+
// NOTE: old SymRefs are now either TypeRefs or TermRefs - the logic here needs to be moved into above branches
109
+
// NOTE: _.symbol on *Ref returns its symbol
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