From 077579a01c73a9dc5b6ebe9be99fc7343fc9d537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Th=C3=A9nault?= Date: Tue, 20 Apr 2010 20:50:37 +0200 Subject: define a constant with all node classes --- nodes.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'nodes.py') diff --git a/nodes.py b/nodes.py index f566efa9..bb1c28f2 100644 --- a/nodes.py +++ b/nodes.py @@ -46,4 +46,26 @@ from logilab.astng.node_classes import (Arguments, AssAttr, Assert, TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, const_factory ) from logilab.astng.scoped_nodes import Module, GenExpr, Lambda, Function, Class +ALL_NODE_CLASSES = ( + Arguments, AssAttr, Assert, Assign, AssName, AugAssign, + Backquote, BinOp, BoolOp, Break, + CallFunc, Class, Compare, Comprehension, Const, Continue, + Decorators, DelAttr, DelName, Delete, + Dict, Discard, + Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice, + For, From, Function, + Getattr, GenExpr, Global, + If, IfExp, Import, Index, + Keyword, + Lambda, List, ListComp, + Name, + Module, + Pass, Print, + Raise, Return, + Slice, Subscript, + TryExcept, TryFinally, Tuple, + UnaryOp, + While, With, + Yield, + ) -- cgit v1.2.1