Introduce FirResolvedTypeRef.delegatedTypeRef to see children types in IDE
This is needed to have access to resolved children types (e.g. type arguments) from IDE
This commit is contained in:
+16
-1
@@ -486,13 +486,28 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
|
||||
noSource()
|
||||
}
|
||||
|
||||
impl(resolvedTypeRef)
|
||||
impl(resolvedTypeRef) {
|
||||
default("delegatedTypeRef") {
|
||||
value = "null"
|
||||
}
|
||||
}
|
||||
|
||||
val errorTypeRefImpl = impl(errorTypeRef) {
|
||||
default("type", "ConeClassErrorType(diagnostic.reason)")
|
||||
default("delegatedTypeRef") {
|
||||
value = "null"
|
||||
withGetter = true
|
||||
}
|
||||
useTypes(coneClassErrorTypeType)
|
||||
}
|
||||
|
||||
impl(resolvedFunctionTypeRef) {
|
||||
default("delegatedTypeRef") {
|
||||
value = "null"
|
||||
withGetter = true
|
||||
}
|
||||
}
|
||||
|
||||
impl(errorFunction) {
|
||||
defaultNull("receiverTypeRef", "body", withGetter = true)
|
||||
default("returnTypeRef", "FirErrorTypeRefImpl(null, diagnostic)")
|
||||
|
||||
+1
@@ -490,6 +490,7 @@ object NodeConfigurator : AbstractFieldConfigurator() {
|
||||
|
||||
resolvedTypeRef.configure {
|
||||
+field("type", coneKotlinTypeType)
|
||||
+field("delegatedTypeRef", typeRef, nullable = true)
|
||||
}
|
||||
|
||||
delegatedTypeRef.configure {
|
||||
|
||||
Reference in New Issue
Block a user