getDeclarationsByName

@NotNull
open fun <T : Declaration?> getDeclarationsByName(@NotNull name: @NotNull String, @NotNull clazz: @NotNull Class<T>): @NotNull 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.

<T>

the type of the declaration