/// <summary> /// 使用构建模板 /// </summary> /// <param name="template">构建模板</param> /// <returns></returns> public CompilationException Add(IScript template) { var info = ComplierInfos.Add(template.Script); Exception.ErrorFlag = info.ErrorFlag; return(info); }
/// <summary> /// 添加一段代码 /// </summary> /// <param name="text">代码</param> /// <returns></returns> public CompilationException Add(string text) { var info = ComplierInfos.Add(text); Exception.ErrorFlag = info.ErrorFlag; return(info); }