with Local Declarations
List containing declarations with any local declaration.
Return
A list containing declarations with any local declaration.
fun <T : KoLocalDeclarationProvider> List<T>.withLocalDeclarations(predicate: (List<KoBaseDeclaration>) -> Boolean): List<T>
List containing declarations with local declarations satisfying the predicate.
Return
A list containing declarations with local declarations satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by the list of local declarations.