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

ProcessRevealedValidatingIfComment() private method

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

            var revealedValidatingIfCommentMatch = _revealedValidatingIfCommentRegex.Match(content,
                _innerContext.Position, contentRemainderLength);
            if (revealedValidatingIfCommentMatch.Success)
            {
                string revealedValidatingIfComment = revealedValidatingIfCommentMatch.Value;
                var groups = revealedValidatingIfCommentMatch.Groups;
                string expression = groups["expression"].Value.Trim();
                string ltAndPling = groups["ltAndPling"].Value;
                var type = ltAndPling.Length > 0 ?
                    HtmlConditionalCommentType.RevealedValidating
                    :
                    HtmlConditionalCommentType.RevealedValidatingSimplified
                    ;

                ParseIfConditionalComment(expression, type);

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

            return isProcessed;
        }