Search in sources :

Example 1 with PerlArrayImportsCollector

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

the class PerlArrayUtil method getImportedArraysDescriptors.

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

Aggregations

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