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

ProcessHiddenIfComment() private method

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

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

                ParseIfConditionalComment(expression, HtmlConditionalCommentType.Hidden);

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

            return isProcessed;
        }