Home
last modified time | relevance | path

Searched refs:decorator_list (Results 1 – 25 of 29) sorted by relevance

12

/external/tensorflow/tensorflow/python/autograph/pyct/
Dorigin_info.py171 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
Dpretty_printer_test.py49 decorator_list=[],
Dloader_test.py83 decorator_list=[],
/external/tensorflow/tensorflow/python/autograph/converters/
Dfunctions.py92 node.decorator_list = []
98 node.decorator_list.append(
Dcall_trees.py106 node.decorator_list = self.visit_block(node.decorator_list)
Dlists.py207 node.decorator_list = self.visit_block(node.decorator_list)
/external/python/cpython3/Parser/
DPython.asdl12 stmt* body, expr* decorator_list, expr? returns,
15 stmt* body, expr* decorator_list, expr? returns,
22 expr* decorator_list)
/external/python/cpython3/Include/internal/
Dpycore_ast.h192 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
Dpycore_ast_state.h176 PyObject *decorator_list; member
/external/python/cpython2/Parser/
DPython.asdl13 stmt* body, expr* decorator_list)
14 | ClassDef(identifier name, expr* bases, stmt* body, expr* decorator_list)
/external/python/cpython2/Include/
DPython-ast.h76 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/
Dactivity.py530 node.decorator_list = self.visit_block(node.decorator_list)
570 node.decorator_list = self.visit_block(node.decorator_list)
Dtype_inference.py360 if node.decorator_list:
361 raise NotImplementedError('decorators: {}'.format(node.decorator_list))
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/
Dop_reg_gen.py57 for dec in node.decorator_list:
/external/python/cpython3/Python/
DPython-ast.c190 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 …]
Dsymtable.c1218 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()
Dast_opt.c664 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()
Dast.c688 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/
DPython-ast.c1042 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 …]
Dsymtable.c1015 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/
Dunparse.py227 for deco in t.decorator_list:
243 for deco in t.decorator_list:
/external/python/cpython3/Lib/test/
Dtest_ast.py677 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/
Dast.rst1619 .. 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/
Dast.py981 for deco in node.decorator_list:
1011 for deco in node.decorator_list:
Dinspect.py920 if node.decorator_list:
921 line_number = node.decorator_list[0].lineno

12