Restore API used in mobile-ide/kotlin-ocswift
See IDEA/f53c2114c38f856bdf0ff4d01de9fffeeeb630f2 commit.
In 222+ IDEA usage of the old ErrorUtils (and other classes)
was eliminated, but not in the 211-221 versions.
Relevant Kotlin commit: b5933c70e2
Also, I noticed that stub for createUnresolvedType do not
store arguments into Error type, so I've fixed that too
This commit is contained in:
committed by
teamcity
parent
611e70c254
commit
f8ae097e50
@@ -23,6 +23,18 @@ object ErrorUtils {
|
|||||||
)
|
)
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun createUnresolvedType(presentableName: String, arguments: List<TypeProjection>): SimpleType {
|
fun createUnresolvedType(presentableName: String, arguments: List<TypeProjection>): SimpleType {
|
||||||
return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorType(ErrorTypeKind.UNRESOLVED_TYPE, this.toString())
|
return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorTypeWithArguments(
|
||||||
|
ErrorTypeKind.UNRESOLVED_TYPE, arguments, this.toString()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
@IDEAPluginsCompatibilityAPI(
|
||||||
|
_213, _221,
|
||||||
|
message = "Please migrate to the org.jetbrains.kotlin.types.error.ErrorUtils",
|
||||||
|
plugins = "mobile-ide/kotlin-ocswift"
|
||||||
|
)
|
||||||
|
@JvmStatic
|
||||||
|
fun createErrorType(debugMessage: String): SimpleType {
|
||||||
|
return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorType(ErrorTypeKind.UNRESOLVED_TYPE, debugMessage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user