예제 #1
0
파일: CallMaker.java 프로젝트: Hozum/kotlin
 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);
 }
예제 #2
0
파일: CallMaker.java 프로젝트: Hozum/kotlin
 public static Call makeArrayGetCall(
     @NotNull ReceiverValue arrayAsReceiver,
     @NotNull JetArrayAccessExpression arrayAccessExpression,
     @NotNull CallType callType) {
   return makeCallWithExpressions(
       arrayAccessExpression,
       arrayAsReceiver,
       null,
       arrayAccessExpression,
       arrayAccessExpression.getIndexExpressions(),
       callType);
 }