Пример #1
0
 @NotNull
 private JsExpression translateAsMethodCall(
     @NotNull JsExpression arrayExpression, @Nullable JsExpression toSetTo) {
   boolean isGetter = toSetTo == null;
   TranslationContext context = context();
   ResolvedCall<FunctionDescriptor> resolvedCall =
       BindingUtils.getResolvedCallForArrayAccess(bindingContext(), expression, isGetter);
   if (!isGetter) {
     context = contextWithValueParameterAliasInArrayGetAccess(toSetTo);
   }
   return CallTranslator.translate(context, resolvedCall, arrayExpression);
 }
Пример #2
0
 @NotNull
 private JsExpression translate() {
   return CallTranslator.translate(context(), resolvedCall, receiver);
 }