without Parents
List containing declarations with none parent - declaration does not extend any class and does not implement any interface.
Return
A list containing declarations with no parent - declaration does not extend any class and does not implement any interface.
Parameters
indirect Parents
Whether to include indirect parents.
fun <T : KoParentProvider> List<T>.withoutParents(indirectParents: Boolean = false, predicate: (List<KoParentDeclaration>) -> Boolean): List<T>
List containing declarations without parent declarations satisfying the predicate.
Return
A list containing declarations without parent declarations satisfying the predicate.
Parameters
indirect Parents
Whether to include indirect parents.
predicate
A function that defines the condition to be met by the list of parent declarations.