예제 #1
0
 public override void VisitSelectorCombination(CssSelectorCombination combination)
 {
     combination.LeftOperand.Apply(this);
     _sb.Append(' ');
     if (combination.Combinator != CssCombinator.Descendant)
     {
         _sb.Append((char)combination.Combinator).Append(' ');
     }
     combination.RightOperand.Apply(this);
 }
예제 #2
0
        public override void VisitSelectorCombination(CssSelectorCombination combination)
        {
            combination.LeftOperand.Apply(this);
            if (ReferenceEquals(_matcher, Never))
            {
                return;
            }
            var leftOperand = _matcher;

            combination.RightOperand.Apply(this);
            if (ReferenceEquals(_matcher, Never))
            {
                return;
            }
            var rightOperand = _matcher;

            _matcher = new CombinationMatcher(combination.Combinator, leftOperand, rightOperand);
        }
예제 #3
0
 public virtual void VisitSelectorCombination(CssSelectorCombination combination)
 {
     combination.LeftOperand.Apply(this);
     combination.RightOperand.Apply(this);
 }