예제 #1
0
 /// <summary>
 /// 全参数构造函数
 /// </summary>
 /// <param name="isSuccess">是否解释成功</param>
 /// <param name="period">解释器运行到的阶段</param>
 /// <param name="errorInfos">错误信息</param>
 public InterpretResult(bool isSuccess, InterpretPeriod period,
                        List <ErrorInfo> errorInfos)
 {
     this.IsSuccess  = isSuccess;
     this.Period     = period;
     this.ErrorInfos = errorInfos;
 }
예제 #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="errorInfos">报错信息列表</param>
 /// <param name="period">所处阶段</param>
 public InterpretResult(bool isSuccess, InterpretPeriod period)
 {
     this.IsSuccess = isSuccess;
     this.Period    = period;
     ErrorInfos     = new List <ErrorInfo>();
 }