countImports

abstract fun countImports(predicate: (KoImportDeclaration) -> Boolean): Int

Returns the number of imports that satisfies the specified predicate present in the declaration.

Return

The number of imports in the declaration.

Parameters

predicate

The predicate function to determine if an import satisfies a condition.