/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | origin_info.py | 171 if (hasattr(root_node, 'decorator_list') and root_node.decorator_list and 172 hasattr(root_node.decorator_list[0], 'lineno')): 176 self._lineno_offset = context_lineno - root_node.decorator_list[0].lineno
|
D | pretty_printer_test.py | 49 decorator_list=[],
|
D | loader_test.py | 83 decorator_list=[],
|
/external/tensorflow/tensorflow/python/autograph/converters/ |
D | functions.py | 92 node.decorator_list = [] 98 node.decorator_list.append(
|
D | call_trees.py | 106 node.decorator_list = self.visit_block(node.decorator_list)
|
D | lists.py | 207 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/cpython3/Include/internal/ |
D | pycore_ast.h | 192 asdl_expr_seq *decorator_list; member 201 asdl_expr_seq *decorator_list; member 211 asdl_expr_seq *decorator_list; member 635 body, asdl_expr_seq * decorator_list, expr_ty 641 decorator_list, expr_ty returns, string 646 asdl_expr_seq * decorator_list, int lineno, int
|
D | pycore_ast_state.h | 176 PyObject *decorator_list; member
|
/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/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/python/autograph/pyct/static_analysis/ |
D | activity.py | 530 node.decorator_list = self.visit_block(node.decorator_list) 570 node.decorator_list = self.visit_block(node.decorator_list)
|
D | type_inference.py | 360 if node.decorator_list: 361 raise NotImplementedError('decorators: {}'.format(node.decorator_list))
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/ |
D | op_reg_gen.py | 57 for dec in node.decorator_list:
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 190 Py_CLEAR(state->decorator_list); in _PyAST_Fini() 296 if ((state->decorator_list = PyUnicode_InternFromString("decorator_list")) == NULL) return 0; in init_identifiers() 1945 asdl_expr_seq * decorator_list, expr_ty returns, string in _PyAST_FunctionDef() argument 1967 p->v.FunctionDef.decorator_list = decorator_list; in _PyAST_FunctionDef() 1979 body, asdl_expr_seq * decorator_list, expr_ty returns, in _PyAST_AsyncFunctionDef() argument 2001 p->v.AsyncFunctionDef.decorator_list = decorator_list; in _PyAST_AsyncFunctionDef() 2013 keywords, asdl_stmt_seq * body, asdl_expr_seq * decorator_list, in _PyAST_ClassDef() argument 2031 p->v.ClassDef.decorator_list = decorator_list; in _PyAST_ClassDef() 3670 value = ast2obj_list(state, (asdl_seq*)o->v.FunctionDef.decorator_list, in ast2obj_stmt() 3673 if (PyObject_SetAttr(result, state->decorator_list, value) == -1) in ast2obj_stmt() [all …]
|
D | symtable.c | 1218 if (s->v.FunctionDef.decorator_list) in symtable_visit_stmt() 1219 VISIT_SEQ(st, expr, s->v.FunctionDef.decorator_list); in symtable_visit_stmt() 1235 if (s->v.ClassDef.decorator_list) in symtable_visit_stmt() 1236 VISIT_SEQ(st, expr, s->v.ClassDef.decorator_list); in symtable_visit_stmt() 1452 if (s->v.AsyncFunctionDef.decorator_list) in symtable_visit_stmt() 1453 VISIT_SEQ(st, expr, s->v.AsyncFunctionDef.decorator_list); in symtable_visit_stmt()
|
D | ast_opt.c | 664 CALL_SEQ(astfold_expr, expr, node_->v.FunctionDef.decorator_list); in astfold_stmt() 672 CALL_SEQ(astfold_expr, expr, node_->v.AsyncFunctionDef.decorator_list); in astfold_stmt() 681 CALL_SEQ(astfold_expr, expr, node_->v.ClassDef.decorator_list); in astfold_stmt()
|
D | ast.c | 688 validate_exprs(state, stmt->v.FunctionDef.decorator_list, Load, 0) && in validate_stmt() 696 validate_exprs(state, stmt->v.ClassDef.decorator_list, Load, 0); in validate_stmt() 846 validate_exprs(state, 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()
|
/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/Lib/test/ |
D | test_ast.py | 677 attr_b = tree.body[0].decorator_list[0].value 1169 def cls(bases=None, keywords=None, body=None, decorator_list=None): argument 1176 if decorator_list is None: 1177 decorator_list = [] 1179 body, decorator_list) 1186 self.stmt(cls(decorator_list=[ast.Name("x", ast.Store())]),
|
/external/python/cpython3/Doc/library/ |
D | ast.rst | 1619 .. class:: FunctionDef(name, args, body, decorator_list, returns, type_comment) 1626 * ``decorator_list`` is the list of decorators to be applied, stored outermost 1716 decorator_list=[ 1790 .. class:: ClassDef(name, bases, keywords, starargs, kwargs, body, decorator_list) 1804 * ``decorator_list`` is a list of nodes, as in :class:`FunctionDef`. 1827 decorator_list=[ 1835 .. class:: AsyncFunctionDef(name, args, body, decorator_list, returns, type_comment) 1869 decorator_list=[])],
|
/external/python/cpython3/Lib/ |
D | ast.py | 981 for deco in node.decorator_list: 1011 for deco in node.decorator_list:
|
D | inspect.py | 920 if node.decorator_list: 921 line_number = node.decorator_list[0].lineno
|