Home | History | Annotate | Download | only in lib2to3

Lines Matching defs:Leaf

35     Abstract base class for Node and Leaf.
114 Set the prefix for the node (see Leaf class).
124 Return the prefix for the node (see Leaf class).
158 while not isinstance(node, Leaf):
351 class Leaf(Base):
353 """Concrete implementation for leaf nodes."""
402 return Leaf(self.type, self.value,
431 Convert raw node information to a Node or Leaf instance.
445 return Leaf(type, value, context=context)
459 - LeafPattern matches a single leaf node;
460 - NodePattern matches a single node (usually non-leaf);
541 this matches any *leaf* node; the content may still be required.
557 """Override match() to insist on a leaf node."""
558 if not isinstance(node, Leaf):
587 type is None this matches *any* single node (leaf or not),
589 non-leaf nodes that also match the content pattern.
804 for leaf in self.content:
805 if leaf[0].match(nodes[count], r):