WebMarkupMin.Core.Parsers.HtmlParser.ProcessRevealedEndIfComment C# (CSharp) Method

ProcessRevealedEndIfComment() private method

Process a revealed End If conditional comment
private ProcessRevealedEndIfComment ( ) : bool
return bool
        private bool ProcessRevealedEndIfComment()
        {
            bool isProcessed = false;
            string content = _innerContext.SourceCode;
            int contentRemainderLength = _innerContext.RemainderLength;

            var revealedEndIfCommentMatch = _revealedEndIfCommentRegex.Match(content, _innerContext.Position,
                contentRemainderLength);
            if (revealedEndIfCommentMatch.Success)
            {
                string revealedEndIfComment = revealedEndIfCommentMatch.Value;

                ParseEndIfConditionalComment(HtmlConditionalCommentType.Revealed);

                _innerContext.IncreasePosition(revealedEndIfComment.Length);
                isProcessed = true;
            }

            return isProcessed;
        }