public IEnumerable <IStatementHandler> Order(IEnumerable <IStatementHandler> handlers) { IStatementHandler lastHandler = null; foreach (var handler in handlers) { if (handler is InstanceDeclarationStatementHandler) { lastHandler = handler; } else { yield return(handler); } } yield return(lastHandler); }
public static void Parse(StreamReader src, IStatementHandler handler) { }