with Declarations
fun <T : KoDeclarationProvider> List<T>.withDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>
List containing declarations with any declaration.
Return
A list containing declarations with any declaration.
Parameters
include Nested
Whether to include nested declarations.
include Local
Whether to include local declarations.
fun <T : KoDeclarationProvider> List<T>.withDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoBaseDeclaration>) -> Boolean): List<T>
List containing declarations with declarations satisfying the predicate.
Return
A list containing declarations with declarations satisfying the predicate.
Parameters
include Nested
Whether to include nested declarations.
include Local
Whether to include local declarations.
predicate
A function that defines the condition to be met by the list of declarations.