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.

The set may contain more than one element if a declaration exists in the [ ] itself and in an included header file.

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