@Nullable protected JsExpression getAliasForDescriptor( @NotNull DeclarationDescriptor descriptor, boolean fromChild) { JsExpression alias = aliasesForDescriptors == null ? null : aliasesForDescriptors.get(descriptor.getOriginal()); return alias != null || parent == null ? alias : parent.getAliasForDescriptor(descriptor, true); }
@Nullable public JsExpression getAliasForExpression(@NotNull KtExpression element) { JsExpression alias = aliasesForExpressions == null ? null : aliasesForExpressions.get(element); return alias != null || parent == null ? alias : parent.getAliasForExpression(element); }