Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CodeComment" /> class.
        /// </summary>
        public CodeComment(TextPoint point)
        {
            if (point == null)
            {
                throw new ArgumentNullException("point");
            }

            _document = point.Parent;

            _commentLineRegex = CodeCommentHelper.GetCommentRegex(_document.Language, true);
            _codeLineRegex    = CodeCommentHelper.GetCodeCommentRegex(_document.Language);

            Expand(point);
        }