Exemple #1
0
 @Override
 public ArrayAssignment arrayAssignment(ArrayAssignment arrayAssignment) {
   ArrayReplacement newReplacement =
       new ArrayReplacement(arrayAssignment.getAccess().getIndex(), arrayAssignment.getValue());
   ArrayReplacementAppender arrayReplacementAppender =
       new ArrayReplacementAppender(arrayAssignment.getAccess().getName(), newReplacement);
   wp = arrayReplacementAppender.replace(wp);
   return null;
 }
Exemple #2
0
 @Override
 public ArrayDefinition arrayDefinition(ArrayDefinition arrayDefinition) {
   if (arrayDefinition.getAssignments() != null) {
     for (ArrayAssignment current : arrayDefinition.getAssignments()) {
       current.accept(this);
     }
   }
   return null;
 }