RawFirBuilder: don't convert scripts to prevent exceptions
This commit is contained in:
committed by
teamcityserver
parent
8d27f102e7
commit
11f951e6d1
+3
@@ -104,6 +104,9 @@ class DeclarationsConverter(
|
||||
PROPERTY -> firDeclarationList += convertPropertyDeclaration(it)
|
||||
TYPEALIAS -> firDeclarationList += convertTypeAlias(it)
|
||||
OBJECT_DECLARATION -> firDeclarationList += convertClass(it)
|
||||
SCRIPT -> {
|
||||
// TODO: scripts aren't supported yet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -821,6 +821,8 @@ open class RawFirBuilder(
|
||||
}
|
||||
}
|
||||
for (declaration in file.declarations) {
|
||||
// TODO: scripts aren't supported yet
|
||||
if (declaration is KtScript) continue
|
||||
declarations += declaration.convert<FirDeclaration>()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user