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

ProcessRevealedIfComment() private method

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

            var revealedIfCommentMatch = _revealedIfCommentRegex.Match(content, _innerContext.Position,
                contentRemainderLength);
            if (revealedIfCommentMatch.Success)
            {
                string revealedIfComment = revealedIfCommentMatch.Value;
                var groups = revealedIfCommentMatch.Groups;
                string expression = groups["expression"].Value.Trim();

                ParseIfConditionalComment(expression, HtmlConditionalCommentType.Revealed);

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

            return isProcessed;
        }