@Override public List<PExp> caseACasesExp(ACasesExp exp) throws AnalysisException { List<PExp> subs = exp.getExpression().apply(THIS); for (ACaseAlternative c : exp.getCases()) { subs.addAll(c.apply(THIS)); } if (exp.getOthers() != null) { subs.addAll(exp.getOthers().apply(THIS)); } subs.add(exp); return subs; }
e.apply(this);
e.apply(this, question);
e.apply(this);
@Override public ValueList caseACasesExp(ACasesExp exp, ObjectContext ctxt) throws AnalysisException { ValueList list = exp.getExpression().apply(THIS, ctxt); for (ACaseAlternative c : exp.getCases()) { list.addAll(c.apply(THIS, ctxt)); } if (exp.getOthers() != null) { list.addAll(exp.getOthers().apply(THIS, ctxt)); } return list; }
mergeReturns(retVal,e.apply(this));
mergeReturns(retVal,e.apply(this, question));
public LexNameList caseACasesExp(ACasesExp expression) throws org.overture.ast.analysis.AnalysisException { LexNameList list = af.createPExpAssistant().getOldNames(expression.getExpression()); for (ACaseAlternative c : expression.getCases()) { list.addAll(c.apply(this)); } if (expression.getOthers() != null) { list.addAll(af.createPExpAssistant().getOldNames(expression.getOthers())); } return list; }
SExpIR altCg = alt.apply(question.getExpVisitor(), question); casesCg.add((ACaseAltExpExpIR) altCg);