source Declarations
fun <T : KoSourceDeclarationProvider> List<T>.sourceDeclarations(predicate: (KoDeclarationCastProvider) -> Boolean? = null): List<KoDeclarationCastProvider>
List containing source declarations associated with types.
Return
A list of source declarations that match the provided predicate, or all source declarations if no predicate is provided.
Parameters
predicate
A function that defines the condition to be met by the type source declaration. If null, all source declarations are included.