print

fun <T : KoBaseProvider> T.print(prefix: String? = null, predicate: (T) -> String? = null): T

Print declaration.

Return

The original declaration.

Parameters

prefix

An optional string to be printed before the declaration content. Default is null.

predicate

An optional function that generates the string representation of the declaration. If predicate is not provided (default is null), the function uses the declaration's name (if available) ortoString method otherwise.