Ejemplo n.º 1
0
 public void Visit(ElementRestriction selector)
 {
   this.Specificity += (1 << 4);
 }
Ejemplo n.º 2
0
 public static ElementRestriction LocalName(string name)
 {
   var result = new ElementRestriction();
   result.Name.LocalName = name;
   return result;
 }
Ejemplo n.º 3
0
 public void Visit(ElementRestriction selector)
 {
   _matches = _matches.Where(n => IsMatch(n.Name, selector.Name));
 }
 public void Visit(ElementRestriction selector)
 {
   if (selector.Name.Namespace != "*")
   {
     _writer.Write(selector.Name.Prefix ?? selector.Name.Namespace ?? "");
     _writer.Write('|');
   }
   _writer.Write(selector.Name.LocalName);
 }