isTopLevelInFileOrScript¶
fun isTopLevelInFileOrScript(element: PsiElement): Boolean
Returns true if element is a top-level element of a file or a top-level statement of a script.
fun isTopLevelInFileOrScript(element: PsiElement): Boolean
Returns true if element is a top-level element of a file or a top-level statement of a script.