Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/python/autograph/pyct/
Dorigin_info.py175 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
Dpretty_printer_test.py53 decorator_list=[],
Dloader_test.py77 decorator_list=[],
/external/tensorflow/tensorflow/python/autograph/converters/
Dfunctions.py96 node.decorator_list = []
102 node.decorator_list.append(
Dcall_trees.py110 node.decorator_list = self.visit_block(node.decorator_list)
Dlists.py211 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/cpython2/Parser/
DPython.asdl13 stmt* body, expr* decorator_list)
14 | ClassDef(identifier name, expr* bases, stmt* body, expr* decorator_list)
/external/python/cpython3/Include/
DPython-ast.h91 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/
Dactivity.py535 node.decorator_list = self.visit_block(node.decorator_list)
575 node.decorator_list = self.visit_block(node.decorator_list)
Dtype_inference.py364 if node.decorator_list:
365 raise NotImplementedError('decorators: {}'.format(node.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/compiler/mlir/tfr/python/
Dop_reg_gen.py61 for dec in node.decorator_list:
/external/python/cpython3/Python/
DPython-ast.c160 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 …]
Dsymtable.c1189 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()
Dast_opt.c624 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()
Dast.c357 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/
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()
Dcompile.c1357 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/
Dunparse.py227 for deco in t.decorator_list:
243 for deco in t.decorator_list:
/external/python/cpython3/Doc/library/
Dast.rst1245 .. 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/
Dtest_ast.py656 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/
Dast.py975 for deco in node.decorator_list:
1005 for deco in node.decorator_list:
Dinspect.py797 if node.decorator_list:
798 line_number = node.decorator_list[0].lineno

12