KtScriptInitializer doesn't has a descriptor
This commit is contained in:
@@ -230,6 +230,10 @@ fun KtClass.getOrCreateCompanionObject(): KtObjectDeclaration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun KtDeclaration.toDescriptor(): DeclarationDescriptor? {
|
fun KtDeclaration.toDescriptor(): DeclarationDescriptor? {
|
||||||
|
if (this is KtScriptInitializer) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
val bindingContext = analyze()
|
val bindingContext = analyze()
|
||||||
// TODO: temporary code
|
// TODO: temporary code
|
||||||
if (this is KtPrimaryConstructor) {
|
if (this is KtPrimaryConstructor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user