Search in sources :

Example 1 with PerlSubImportsCollector

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

the class PerlSubUtil method getImportedSubsDescriptors.

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

Aggregations

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