public void Accept(ISelectorVisitor visitor)
        {
            var selectors = _combinators.Select(m => m.Selector);
            var symbols   = _combinators.Take(_combinators.Count - 1).Select(m => m.Delimiter);

            visitor.Combinator(selectors, symbols);
        }
 public void Accept(ISelectorVisitor visitor)
 {
     foreach(var part in parts)
     {
         part.Accept(visitor);
     }
 }
Exemple #3
0
 public void Accept(ISelectorVisitor visitor) => visitor.Type(_type);
 public abstract void Visit(ISelectorVisitor visitor);
Exemple #5
0
 public void Accept(ISelectorVisitor visitor) => visitor.PseudoElement(_pseudoElement);
Exemple #6
0
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.Child(_name, _step, _offset, _kind);
 }
Exemple #7
0
 public void Accept(ISelectorVisitor visitor) => visitor.Attribute(Attribute, String.Empty, null);
Exemple #8
0
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.Type(Text);
 }
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.Many(_selectors);
 }
Exemple #10
0
 public void Accept(ISelectorVisitor visitor) => visitor.Type(_prefix);
 public void Accept(ISelectorVisitor visitor) => visitor.Class(_cls);
Exemple #12
0
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.PseudoClass(PseudoClassNames.Scope);
 }
 public override void Visit(ISelectorVisitor visitor)
 {
   base.Visit(visitor);
 }
 /// <summary>
 /// Accepts the specified visitor.
 /// </summary>
 /// <param name="visitor">The visitor.</param>
 public abstract void Accept(ISelectorVisitor visitor);
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.Attribute(Attribute, "^=", _value);
 }
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.PseudoClass(_pseudoClass);
 }
 public override void Visit(ISelectorVisitor visitor)
 {
   visitor.Visit(this);
 }
 public void Accept(ISelectorVisitor visitor) => visitor.Id(_id);
 public void Accept(ISelectorVisitor visitor)
 {
     visitor.List(_selectors);
 }
 public GraphFactory(ISelectorVisitor visitor)
 {
     _visitor = visitor;
 }