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

ProcessHiddenEndIfComment() private method

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

            var hiddenEndIfCommentMatch = _hiddenEndIfCommentRegex.Match(content, _innerContext.Position,
                contentRemainderLength);
            if (hiddenEndIfCommentMatch.Success)
            {
                string hiddenEndIfComment = hiddenEndIfCommentMatch.Value;

                ParseEndIfConditionalComment(HtmlConditionalCommentType.Hidden);

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

            return isProcessed;
        }