getFileOrScriptDeclarations¶ fun KtFile.getFileOrScriptDeclarations(): List<KtDeclaration> Returns the top-level declarations of this file, taking them from the script if the file is a script. jvm