// The Nova Project by Ken Beckett.
// Copyright (C) 2007-2012 Inevitable Software, all rights reserved.
// Released under the Common Development and Distribution License, CDDL-1.0: http://opensource.org/licenses/cddl1.php
using Nova.Parsing;
namespace Nova.CodeDOM
{
/// <summary>
/// Represents a separate paragraph in a documentation comment.
/// </summary>
public class DocPara : DocComment
{
#region /* CONSTRUCTORS */
/// <summary>
/// Create a <see cref="DocPara"/>.
/// </summary>
public DocPara(string text)
: base(text)
{ }
/// <summary>
/// Create a <see cref="DocPara"/>.
/// </summary>
public DocPara(params DocComment[] docComments)
: base(docComments)
{ }
#endregion
#region /* PROPERTIES */
/// <summary>
/// The XML tag name for the documentation comment.
/// </summary>
public override string TagName
{
get { return ParseToken; }
}
#endregion
#region /* PARSING */
/// <summary>
/// The token used to parse the code object.
/// </summary>
public new const string ParseToken = "para";
internal static void AddParsePoints()
{
Parser.AddDocCommentParseTag(ParseToken, Parse);
}
/// <summary>
/// Parse a <see cref="DocPara"/>.
/// </summary>
public static new DocPara Parse(Parser parser, CodeObject parent, ParseFlags flags)
{
return new DocPara(parser, parent);
}
/// <summary>
/// Parse a <see cref="DocPara"/>.
/// </summary>
public DocPara(Parser parser, CodeObject parent)
{
ParseTag(parser, parent); // Ignore any attributes
}
#endregion
}
}