@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; }
@Override public ArrayDefinition arrayDefinition(ArrayDefinition arrayDefinition) { if (arrayDefinition.getAssignments() != null) { for (ArrayAssignment current : arrayDefinition.getAssignments()) { current.accept(this); } } return null; }