[FIR] Make source in qualifier parts nullable

This is needed to be able to create no-source user type refs from plugins
This commit is contained in:
Dmitriy Novozhilov
2022-09-23 12:53:27 +03:00
committed by Space
parent 2845929bc0
commit 519f6aeff1
2 changed files with 6 additions and 6 deletions
@@ -9,12 +9,12 @@ import org.jetbrains.kotlin.KtSourceElement
import org.jetbrains.kotlin.name.Name
interface FirTypeArgumentList {
val source: KtSourceElement
val source: KtSourceElement?
val typeArguments: List<FirTypeProjection>
}
interface FirQualifierPart {
val source: KtSourceElement
val source: KtSourceElement?
val name: Name
val typeArgumentList: FirTypeArgumentList
}
}
@@ -11,12 +11,12 @@ import org.jetbrains.kotlin.fir.types.FirTypeArgumentList
import org.jetbrains.kotlin.fir.types.FirTypeProjection
import org.jetbrains.kotlin.name.Name
class FirTypeArgumentListImpl(override val source: KtSourceElement) : FirTypeArgumentList {
class FirTypeArgumentListImpl(override val source: KtSourceElement?) : FirTypeArgumentList {
override val typeArguments = mutableListOf<FirTypeProjection>()
}
class FirQualifierPartImpl(
override val source: KtSourceElement,
override val source: KtSourceElement?,
override val name: Name,
override val typeArgumentList: FirTypeArgumentList
) : FirQualifierPart
) : FirQualifierPart