public override void ReadLineAnnotation(LineAnnInfo info)
 {
     if (info.Eleme is JDefinitionEleme)
     {
         this.ReadLADefin(info);
     }
     else
     {
         this.ReadLAFun(info.Eleme as JFunEleme, info.Desc);
     }
 }
        /// <summary>
        /// 变量
        /// </summary>
        /// <param name="info"></param>
        private void ReadLADefin(LineAnnInfo info)
        {
            string[] array  = info.Desc.Trim().ToSplitStrings("\r\n");
            var      sbDesc = new StringBuilder();

            for (var i = 0; i < array.Length; i++)
            {
                array[i] = array[i].TrimStart().TrimStart('/');
                if (i == array.Length - 1)
                {
                    var regex = new Regex(@"^\{(\w+)\}");

                    var m = regex.Match(array[i]);
                    if (m != null && m.Success)
                    {
                        info.Eleme.Type = m.Groups[1].Value;
                        continue;
                    }
                }
                sbDesc.AppendLine(array[i]);
            }
            info.Eleme.Desc = "摘要:\r\n    " + sbDesc.ToString().TrimEnd();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 添加到线程中
 /// </summary>
 /// <param name="info"></param>
 public void Add(LineAnnInfo info)
 {
     LineDatas.Enqueue(info);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 读取行中的数据
 /// </summary>
 /// <param name="info"></param>
 public abstract void ReadLineAnnotation(LineAnnInfo info);