use of com.intellij.lang.javascript.flex.AnnotationBackedDescriptor in project intellij-plugins by JetBrains.
the class ClassBackedElementDescriptor method appendSuperClassDescriptors.
private void appendSuperClassDescriptors(final Map<String, AnnotationBackedDescriptor> map, final Map<String, Map<String, AnnotationBackedDescriptor>> packageToInternalDescriptors, final PsiElement _clazz, @Nullable Set<JSClass> visited) {
if (_clazz instanceof JSClass) {
final JSClass clazz = (JSClass) _clazz;
ClassBackedElementDescriptor parentDescriptor = context.getElementDescriptor(clazz.getName(), clazz.getQualifiedName());
if (parentDescriptor == null) {
parentDescriptor = new ClassBackedElementDescriptor(null, clazz.getQualifiedName(), context, project);
}
parentDescriptor.ensureDescriptorsMapsInitialized(clazz, visited);
map.putAll(parentDescriptor.myDescriptors);
for (final Map.Entry<String, Map<String, AnnotationBackedDescriptor>> entry : parentDescriptor.myPackageToInternalDescriptors.entrySet()) {
Map<String, AnnotationBackedDescriptor> descriptorMap = packageToInternalDescriptors.get(entry.getKey());
if (descriptorMap == null) {
descriptorMap = new THashMap<>();
packageToInternalDescriptors.put(entry.getKey(), descriptorMap);
}
descriptorMap.putAll(entry.getValue());
}
}
}
Aggregations