withImports

List containing declarations with any import.

Return

A list containing declarations with any import.


List containing declarations with import declarations satisfying the predicate.

Return

A list containing declarations with import declarations satisfying the predicate.

Parameters

predicate

A function that defines the condition to be met by the list of import declarations.