Home | History | Annotate | Download | only in lib2to3

Lines Matching full:nodes

101         nodes = node.children
102 if len(nodes) >= 3 and nodes[1].type == token.EQUAL:
103 name = nodes[0].value
104 nodes = nodes[2:]
106 if len(nodes) >= 2 and nodes[-1].type == self.syms.Repeater:
107 repeat = nodes[-1]
108 nodes = nodes[:-1]
111 pattern = self.compile_basic(nodes, repeat)
139 def compile_basic(self, nodes, repeat=None):
141 assert len(nodes) >= 1
142 node = nodes[0]
151 if nodes[1:]:
161 if nodes[1:]: # Details present
162 content = [self.compile_node(nodes[1].children[1])]
167 return self.compile_node(nodes[1])
170 subpattern = self.compile_node(nodes[1])