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); } }
public void Accept(ISelectorVisitor visitor) => visitor.Type(_type);
public abstract void Visit(ISelectorVisitor visitor);
public void Accept(ISelectorVisitor visitor) => visitor.PseudoElement(_pseudoElement);
public void Accept(ISelectorVisitor visitor) { visitor.Child(_name, _step, _offset, _kind); }
public void Accept(ISelectorVisitor visitor) => visitor.Attribute(Attribute, String.Empty, null);
public void Accept(ISelectorVisitor visitor) { visitor.Type(Text); }
public void Accept(ISelectorVisitor visitor) { visitor.Many(_selectors); }
public void Accept(ISelectorVisitor visitor) => visitor.Type(_prefix);
public void Accept(ISelectorVisitor visitor) => visitor.Class(_cls);
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; }