slice

abstract fun slice(predicate: (KoFileDeclaration) -> Boolean): KoScope

The scope with given predicate.

Return

a new KoScope containing the file declarations that satisfy the predicate.

Parameters

predicate

the predicate function to filter file declarations.