Search in sources :

Example 1 with PerlScalarImportsCollector

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

the class PerlScalarUtil method getImportedScalarsDescritptors.

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

Aggregations

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