Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/logilab/astng/nodes.py

Issue 739393004: Revert "Revert "pylint: upgrade to 1.3.1"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/logilab/astng/node_classes.py ('k') | third_party/logilab/astng/protocols.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
3 # copyright 2003-2010 Sylvain Thenault, all rights reserved.
4 # contact mailto:thenault@gmail.com
5 #
6 # This file is part of logilab-astng.
7 #
8 # logilab-astng is free software: you can redistribute it and/or modify it
9 # under the terms of the GNU Lesser General Public License as published by the
10 # Free Software Foundation, either version 2.1 of the License, or (at your
11 # option) any later version.
12 #
13 # logilab-astng is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
16 # for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public License along
19 # with logilab-astng. If not, see <http://www.gnu.org/licenses/>.
20 """
21 on all nodes :
22 .is_statement, returning true if the node should be considered as a
23 statement node
24 .root(), returning the root node of the tree (i.e. a Module)
25 .previous_sibling(), returning previous sibling statement node
26 .next_sibling(), returning next sibling statement node
27 .statement(), returning the first parent node marked as statement node
28 .frame(), returning the first node defining a new local scope (i.e.
29 Module, Function or Class)
30 .set_local(name, node), define an identifier <name> on the first parent frame,
31 with the node defining it. This is used by the astng builder and should not
32 be used from out there.
33
34 on From and Import :
35 .real_name(name),
36
37
38 """
39
40 __docformat__ = "restructuredtext en"
41
42 from logilab.astng.node_classes import Arguments, AssAttr, Assert, Assign, \
43 AssName, AugAssign, Backquote, BinOp, BoolOp, Break, CallFunc, Compare, \
44 Comprehension, Const, Continue, Decorators, DelAttr, DelName, Delete, \
45 Dict, Discard, Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice, For, \
46 From, Getattr, Global, If, IfExp, Import, Index, Keyword, \
47 List, Name, Nonlocal, Pass, Print, Raise, Return, Set, Slice, Starred, Subsc ript, \
48 TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, \
49 const_factory
50 from logilab.astng.scoped_nodes import Module, GenExpr, Lambda, DictComp, \
51 ListComp, SetComp, Function, Class
52
53 ALL_NODE_CLASSES = (
54 Arguments, AssAttr, Assert, Assign, AssName, AugAssign,
55 Backquote, BinOp, BoolOp, Break,
56 CallFunc, Class, Compare, Comprehension, Const, Continue,
57 Decorators, DelAttr, DelName, Delete,
58 Dict, DictComp, Discard,
59 Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice,
60 For, From, Function,
61 Getattr, GenExpr, Global,
62 If, IfExp, Import, Index,
63 Keyword,
64 Lambda, List, ListComp,
65 Name, Nonlocal,
66 Module,
67 Pass, Print,
68 Raise, Return,
69 Set, SetComp, Slice, Starred, Subscript,
70 TryExcept, TryFinally, Tuple,
71 UnaryOp,
72 While, With,
73 Yield,
74 )
75
OLDNEW
« no previous file with comments | « third_party/logilab/astng/node_classes.py ('k') | third_party/logilab/astng/protocols.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698