public List <IDebugItem> GetDebugInputs(IBinaryDataList dataList, IDataListCompiler compiler, IDev2LanguageParser parser) { IList <IDev2Definition> inputs = parser.Parse(InputMapping); var results = new List <IDebugItem>(); foreach (IDev2Definition dev2Definition in inputs) { ErrorResultTO errors; IBinaryDataListEntry tmpEntry = compiler.Evaluate(dataList.UID, enActionType.User, dev2Definition.RawValue, false, out errors); DebugItem itemToAdd = new DebugItem(); AddDebugItem(new DebugItemVariableParams(dev2Definition.RawValue, "", tmpEntry, dataList.UID), itemToAdd); if (errors.HasErrors()) { itemToAdd.FlushStringBuilder(); throw new DebugCopyException(errors.MakeDisplayReady(), itemToAdd); } results.Add(itemToAdd); } foreach (IDebugItem debugInput in results) { debugInput.FlushStringBuilder(); } return(results); }
public void DebugItem_Flush() { var item = new DebugItem(); item.FlushStringBuilder(); }