private WaitPattern VisitWaitPattern(WaitPattern wp) { if (wp == null) return null; wp.expression = this.VisitExpression(wp.expression); return wp; }