/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | origin_info.py | 175 if (hasattr(root_node, 'decorator_list') and root_node.decorator_list and 176 hasattr(root_node.decorator_list[0], 'lineno')): 180 self._lineno_offset = context_lineno - root_node.decorator_list[0].lineno
|
D | pretty_printer_test.py | 53 decorator_list=[],
|
D | loader_test.py | 77 decorator_list=[],
|
/external/tensorflow/tensorflow/python/autograph/converters/ |
D | functions.py | 96 node.decorator_list = [] 102 node.decorator_list.append(
|
D | call_trees.py | 110 node.decorator_list = self.visit_block(node.decorator_list)
|
D | lists.py | 211 node.decorator_list = self.visit_block(node.decorator_list)
|
/external/python/cpython3/Parser/ |
D | Python.asdl | 12 stmt* body, expr* decorator_list, expr? returns, 15 stmt* body, expr* decorator_list, expr? returns, 22 expr* decorator_list)
|
/external/python/cpython2/Parser/ |
D | Python.asdl | 13 stmt* body, expr* decorator_list) 14 | ClassDef(identifier name, expr* bases, stmt* body, expr* decorator_list)
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 91 asdl_seq *decorator_list; member 100 asdl_seq *decorator_list; member 110 asdl_seq *decorator_list; member 470 asdl_seq * decorator_list, expr_ty returns, string 475 body, asdl_seq * decorator_list, expr_ty returns, 481 asdl_seq * body, asdl_seq * decorator_list, int lineno,
|
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/ |
D | activity.py | 535 node.decorator_list = self.visit_block(node.decorator_list) 575 node.decorator_list = self.visit_block(node.decorator_list)
|
D | type_inference.py | 364 if node.decorator_list: 365 raise NotImplementedError('decorators: {}'.format(node.decorator_list))
|
/external/python/cpython2/Include/ |
D | Python-ast.h | 76 asdl_seq *decorator_list; member 83 asdl_seq *decorator_list; member 385 asdl_seq * decorator_list, int lineno, int col_offset, 389 asdl_seq * decorator_list, int lineno, int col_offset,
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/ |
D | op_reg_gen.py | 61 for dec in node.decorator_list:
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 160 PyObject *decorator_list; member 405 Py_CLEAR(state->decorator_list); in _PyAST_Fini() 495 if ((state->decorator_list = PyUnicode_InternFromString("decorator_list")) == NULL) return 0; in init_identifiers() 1976 decorator_list, expr_ty returns, string type_comment, int lineno, in FunctionDef() argument 1997 p->v.FunctionDef.decorator_list = decorator_list; in FunctionDef() 2009 * decorator_list, expr_ty returns, string type_comment, int in AsyncFunctionDef() argument 2031 p->v.AsyncFunctionDef.decorator_list = decorator_list; in AsyncFunctionDef() 2043 body, asdl_seq * decorator_list, int lineno, int col_offset, int in ClassDef() argument 2060 p->v.ClassDef.decorator_list = decorator_list; in ClassDef() 3473 value = ast2obj_list(state, o->v.FunctionDef.decorator_list, in ast2obj_stmt() [all …]
|
D | symtable.c | 1189 if (s->v.FunctionDef.decorator_list) in symtable_visit_stmt() 1190 VISIT_SEQ(st, expr, s->v.FunctionDef.decorator_list); in symtable_visit_stmt() 1206 if (s->v.ClassDef.decorator_list) in symtable_visit_stmt() 1207 VISIT_SEQ(st, expr, s->v.ClassDef.decorator_list); in symtable_visit_stmt() 1407 if (s->v.AsyncFunctionDef.decorator_list) in symtable_visit_stmt() 1408 VISIT_SEQ(st, expr, s->v.AsyncFunctionDef.decorator_list); in symtable_visit_stmt()
|
D | ast_opt.c | 624 CALL_SEQ(astfold_expr, expr_ty, node_->v.FunctionDef.decorator_list); in astfold_stmt() 632 CALL_SEQ(astfold_expr, expr_ty, node_->v.AsyncFunctionDef.decorator_list); in astfold_stmt() 641 CALL_SEQ(astfold_expr, expr_ty, node_->v.ClassDef.decorator_list); in astfold_stmt()
|
D | ast.c | 357 validate_exprs(stmt->v.FunctionDef.decorator_list, Load, 0) && in validate_stmt() 364 validate_exprs(stmt->v.ClassDef.decorator_list, Load, 0); in validate_stmt() 478 validate_exprs(stmt->v.AsyncFunctionDef.decorator_list, Load, 0) && in validate_stmt()
|
/external/python/cpython2/Python/ |
D | Python-ast.c | 1042 decorator_list, int lineno, int col_offset, PyArena *arena) in FunctionDef() argument 1062 p->v.FunctionDef.decorator_list = decorator_list; in FunctionDef() 1070 decorator_list, int lineno, int col_offset, PyArena *arena) in ClassDef() argument 1085 p->v.ClassDef.decorator_list = decorator_list; in ClassDef() 2217 value = ast2obj_list(o->v.FunctionDef.decorator_list, in ast2obj_stmt() 2243 value = ast2obj_list(o->v.ClassDef.decorator_list, in ast2obj_stmt() 3527 asdl_seq* decorator_list; in obj2ast_stmt() local 3593 decorator_list = asdl_seq_new(len, arena); in obj2ast_stmt() 3594 if (decorator_list == NULL) goto failed; in obj2ast_stmt() 3603 asdl_seq_SET(decorator_list, i, val); in obj2ast_stmt() [all …]
|
D | symtable.c | 1015 if (s->v.FunctionDef.decorator_list) in symtable_visit_stmt() 1016 VISIT_SEQ(st, expr, s->v.FunctionDef.decorator_list); in symtable_visit_stmt() 1030 if (s->v.ClassDef.decorator_list) in symtable_visit_stmt() 1031 VISIT_SEQ(st, expr, s->v.ClassDef.decorator_list); in symtable_visit_stmt()
|
D | compile.c | 1357 asdl_seq* decos = s->v.FunctionDef.decorator_list; in compiler_function() 1411 asdl_seq* decos = s->v.ClassDef.decorator_list; in compiler_class()
|
/external/python/cpython2/Demo/parser/ |
D | unparse.py | 227 for deco in t.decorator_list: 243 for deco in t.decorator_list:
|
/external/python/cpython3/Doc/library/ |
D | ast.rst | 1245 .. class:: FunctionDef(name, args, body, decorator_list, returns, type_comment) 1252 * ``decorator_list`` is the list of decorators to be applied, stored outermost 1342 decorator_list=[ 1416 .. class:: ClassDef(name, bases, keywords, starargs, kwargs, body, decorator_list) 1430 * ``decorator_list`` is a list of nodes, as in :class:`FunctionDef`. 1453 decorator_list=[ 1461 .. class:: AsyncFunctionDef(name, args, body, decorator_list, returns, type_comment) 1495 decorator_list=[])],
|
/external/python/cpython3/Lib/test/ |
D | test_ast.py | 656 attr_b = tree.body[0].decorator_list[0].value 1106 def cls(bases=None, keywords=None, body=None, decorator_list=None): argument 1113 if decorator_list is None: 1114 decorator_list = [] 1116 body, decorator_list) 1123 self.stmt(cls(decorator_list=[ast.Name("x", ast.Store())]),
|
/external/python/cpython3/Lib/ |
D | ast.py | 975 for deco in node.decorator_list: 1005 for deco in node.decorator_list:
|
D | inspect.py | 797 if node.decorator_list: 798 line_number = node.decorator_list[0].lineno
|