summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2010-04-20 20:50:37 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2010-04-20 20:50:37 +0200
commit077579a01c73a9dc5b6ebe9be99fc7343fc9d537 (patch)
tree2d2478d8b02a4b08373bb168bbacb56b7b75aa10
parent76ec3fb4f732c17a37e2ece518fa877aeaa790bc (diff)
downloadastroid-git-077579a01c73a9dc5b6ebe9be99fc7343fc9d537.tar.gz
define a constant with all node classes
-rw-r--r--nodes.py22
1 files changed, 22 insertions, 0 deletions
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,
+ )