getDeclarationsByName

fun <T : Declaration> getDeclarationsByName(name: String, clazz: Class<T>): Set<T>

Returns a non-null, possibly empty Set of the declaration of a specified type and clazz.

Return

a Set containing the declarations, if any.

Parameters

name

the name to search for

clazz

the declaration class, such as FunctionDeclaration.

the type of the declaration