use of com.perl5.PerlIcons.PACKAGE_GUTTER_ICON in project Perl5-IDEA by Camelcade.
the class PerlPackageCompletionUtil method processAllNamespacesNames.
public static boolean processAllNamespacesNames(@NotNull PerlCompletionProcessor completionProcessor, boolean appendNamespaceSeparator, boolean addPackageTag) {
PsiElement element = completionProcessor.getLeafElement();
final Project project = element.getProject();
Processor<PerlNamespaceDefinitionElement> namespaceProcessor = namespace -> processNamespaceLookupElement(namespace, completionProcessor, appendNamespaceSeparator);
PerlBuiltInNamespacesService.getInstance(project).processNamespaces(namespaceProcessor);
if (addPackageTag && !PerlPackageCompletionUtil.processPackageLookupElement(null, __PACKAGE__, PACKAGE_GUTTER_ICON, completionProcessor, false)) {
return false;
}
return processFirstNamespaceForEachName(completionProcessor, project, element.getResolveScope(), namespaceProcessor);
}
Aggregations