Ejemplo n.º 1
0
        DocBlock ParseDocBlock(String javaFilePath,
                               String line)
        {
            bool IsEnd()
            {
                line = line.Trim();
                if (line.Trim().EndsWith("*/") == false)
                {
                    return(false);
                }
                line = line.Substring(line.Length - 2);
                return(true);
            }

            StringBuilder docLines = new StringBuilder();

            docLines.AppendLine(line);
            bool end = IsEnd();

            while (end == false)
            {
                line = lines[this.lineIndex++];
                end  = IsEnd();
                if (line.Length > 0)
                {
                    docLines.AppendLine(line);
                }
            }
            return(DocBlock.Parse(docLines.ToString()));
        }