FIR light builder: use type reference node as FirTypeRef source
This commit is contained in:
+2
-1
@@ -1712,7 +1712,8 @@ class DeclarationsConverter(
|
|||||||
if (identifier == null)
|
if (identifier == null)
|
||||||
return buildErrorTypeRef { diagnostic = ConeSimpleDiagnostic("Incomplete user type", DiagnosticKind.Syntax) }
|
return buildErrorTypeRef { diagnostic = ConeSimpleDiagnostic("Incomplete user type", DiagnosticKind.Syntax) }
|
||||||
|
|
||||||
val theSource = userType.toFirSourceElement()
|
// Note: we take TYPE_REFERENCE, not USER_TYPE, as the source (to be consistent with RawFirBuilder)
|
||||||
|
val theSource = tree.getParent(userType)!!.toFirSourceElement()
|
||||||
val qualifierPart = FirQualifierPartImpl(
|
val qualifierPart = FirQualifierPartImpl(
|
||||||
identifier.nameAsSafeName(),
|
identifier.nameAsSafeName(),
|
||||||
FirTypeArgumentListImpl(theSource).apply {
|
FirTypeArgumentListImpl(theSource).apply {
|
||||||
|
|||||||
Reference in New Issue
Block a user