private void AddSubExp(Exp exp, List <Exp> list) { list.Add(exp); Exp[] subexps = exp.GetSubExps(); foreach (var expsub in subexps) { AddSubExp(expsub, list); } }
public override Exp[] GetSubExps() { return(SrcExp.GetSubExps()); }