Example #1
0
 public static Call makeArraySetCall(
     @NotNull ReceiverValue arrayAsReceiver,
     @NotNull JetArrayAccessExpression arrayAccessExpression,
     @NotNull JetExpression rightHandSide,
     @NotNull CallType callType) {
   List<JetExpression> arguments = Lists.newArrayList(arrayAccessExpression.getIndexExpressions());
   arguments.add(rightHandSide);
   return makeCallWithExpressions(
       arrayAccessExpression, arrayAsReceiver, null, arrayAccessExpression, arguments, callType);
 }
Example #2
0
 public static Call makeArrayGetCall(
     @NotNull ReceiverValue arrayAsReceiver,
     @NotNull JetArrayAccessExpression arrayAccessExpression,
     @NotNull CallType callType) {
   return makeCallWithExpressions(
       arrayAccessExpression,
       arrayAsReceiver,
       null,
       arrayAccessExpression,
       arrayAccessExpression.getIndexExpressions(),
       callType);
 }