Lines Matching defs:token
22 from ..pygram import token
56 if node.type == token.COLON:
77 if node.type == token.SEMI: # *sigh*
96 if node.children and node.children[-1].type == token.NEWLINE:
131 if node.type == token.INDENT:
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
186 node.insert_child(2, Leaf(token.RPAR, ')'))
188 node.insert_child(2, Leaf(token.LPAR, '('))
198 arglist.append_child(Leaf(token.COMMA, ','))
220 node.append_child(Leaf(token.NEWLINE, '\n'))
223 (suite.children[-2].type == token.INDENT and
224 suite.children[-1].type == token.DEDENT):
228 suite.insert_child(-1, Leaf(token.NEWLINE, '\n'))