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

Unified Diff: third_party/logilab/logilab/astroid/nodes.py

Issue 1920403002: [content/test/gpu] Run pylint check of gpu tests in unittest instead of PRESUBMIT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update path to LICENSE.txt of logilab/README.chromium Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/logilab/logilab/astroid/nodes.py
diff --git a/third_party/logilab/logilab/astroid/nodes.py b/third_party/logilab/logilab/astroid/nodes.py
new file mode 100644
index 0000000000000000000000000000000000000000..263ab476c6a58884f691f9451157647396bf100f
--- /dev/null
+++ b/third_party/logilab/logilab/astroid/nodes.py
@@ -0,0 +1,73 @@
+# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
+#
+# This file is part of astroid.
+#
+# astroid is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation, either version 2.1 of the License, or (at your
+# option) any later version.
+#
+# astroid is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+# for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with astroid. If not, see <http://www.gnu.org/licenses/>.
+"""
+on all nodes :
+ .is_statement, returning true if the node should be considered as a
+ statement node
+ .root(), returning the root node of the tree (i.e. a Module)
+ .previous_sibling(), returning previous sibling statement node
+ .next_sibling(), returning next sibling statement node
+ .statement(), returning the first parent node marked as statement node
+ .frame(), returning the first node defining a new local scope (i.e.
+ Module, Function or Class)
+ .set_local(name, node), define an identifier <name> on the first parent frame,
+ with the node defining it. This is used by the astroid builder and should not
+ be used from out there.
+
+on From and Import :
+ .real_name(name),
+
+
+"""
+
+__docformat__ = "restructuredtext en"
+
+from astroid.node_classes import Arguments, AssAttr, Assert, Assign, \
+ AssName, AugAssign, Backquote, BinOp, BoolOp, Break, CallFunc, Compare, \
+ Comprehension, Const, Continue, Decorators, DelAttr, DelName, Delete, \
+ Dict, Discard, Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice, For, \
+ From, Getattr, Global, If, IfExp, Import, Index, Keyword, \
+ List, Name, Nonlocal, Pass, Print, Raise, Return, Set, Slice, Starred, Subscript, \
+ TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, YieldFrom, \
+ const_factory
+from astroid.scoped_nodes import Module, GenExpr, Lambda, DictComp, \
+ ListComp, SetComp, 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, DictComp, Discard,
+ Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice,
+ For, From, Function,
+ Getattr, GenExpr, Global,
+ If, IfExp, Import, Index,
+ Keyword,
+ Lambda, List, ListComp,
+ Name, Nonlocal,
+ Module,
+ Pass, Print,
+ Raise, Return,
+ Set, SetComp, Slice, Starred, Subscript,
+ TryExcept, TryFinally, Tuple,
+ UnaryOp,
+ While, With,
+ Yield, YieldFrom
+ )
+
« no previous file with comments | « third_party/logilab/logilab/astroid/node_classes.py ('k') | third_party/logilab/logilab/astroid/protocols.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698