using System; namespace AspClassic.Parser; /// /// A parse tree for a comment. /// public sealed class Comment : Tree { private readonly string _Comment; private readonly bool _IsREM; /// /// The text of the comment. /// public string VComment => _Comment; /// /// Whether the comment is a REM comment. /// public bool IsREM => _IsREM; /// /// Constructs a new comment parse tree. /// /// The text of the comment. /// Whether the comment is a REM comment. /// The location of the parse tree. public Comment(string comment, bool isREM, Span span) : base(TreeType.Comment, span) { if (comment == null) { throw new ArgumentNullException("comment"); } _Comment = comment; _IsREM = isREM; } }