Search in sources :

Example 1 with PerlHashImportsCollector

use of com.perl5.lang.perl.util.processors.PerlHashImportsCollector in project Perl5-IDEA by Camelcade.

the class PerlHashUtil method getImportedHashesDescriptors.

/**
 * Returns a map of imported hashes names
 *
 * @param namespaceDefinitionElement element to start looking from
 * @return result map
 */
@NotNull
public static List<PerlExportDescriptor> getImportedHashesDescriptors(@NotNull PerlNamespaceDefinitionElement namespaceDefinitionElement) {
    PerlImportsCollector collector = new PerlHashImportsCollector();
    PerlUtil.processImportedEntities(namespaceDefinitionElement, collector);
    return collector.getResult();
}
Also used : PerlHashImportsCollector(com.perl5.lang.perl.util.processors.PerlHashImportsCollector) PerlImportsCollector(com.perl5.lang.perl.util.processors.PerlImportsCollector) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

PerlHashImportsCollector (com.perl5.lang.perl.util.processors.PerlHashImportsCollector)1 PerlImportsCollector (com.perl5.lang.perl.util.processors.PerlImportsCollector)1 NotNull (org.jetbrains.annotations.NotNull)1