Beispiel #1
0
 @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);
 }
Beispiel #2
0
 @Nullable
 public JsExpression getAliasForExpression(@NotNull KtExpression element) {
   JsExpression alias = aliasesForExpressions == null ? null : aliasesForExpressions.get(element);
   return alias != null || parent == null ? alias : parent.getAliasForExpression(element);
 }