with Variables
List containing declarations with any variable.
Return
A list containing declarations with any variable.
fun <T : KoVariableProvider> List<T>.withVariables(predicate: (List<KoVariableDeclaration>) -> Boolean): List<T>
List containing declarations with variable declarations satisfying the predicate.
Return
A list containing declarations with variable declarations satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by the list of variable declarations.