Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/autograph/converters/
Dcall_trees.py54 node.decorator_list = []
59 node.decorator_list.append(
Dlists.py210 node.decorator_list = self.visit_block(node.decorator_list)
/external/python/cpython3/Parser/
DPython.asdl17 stmt* body, expr* decorator_list, expr? returns)
19 stmt* body, expr* decorator_list, expr? returns)
25 expr* decorator_list)
/external/tensorflow/tensorflow/python/autograph/pyct/
Dpretty_printer_test.py53 decorator_list=[],
Dcompiler_test.py89 decorator_list=[],
/external/python/cpython3/Include/
DPython-ast.h81 asdl_seq *decorator_list; member
89 asdl_seq *decorator_list; member
98 asdl_seq *decorator_list; member
452 asdl_seq * decorator_list, expr_ty returns, int lineno,
456 body, asdl_seq * decorator_list, expr_ty returns,
460 asdl_seq * body, asdl_seq * decorator_list, int lineno,
/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/python/cpython3/Python/
DPython-ast.c39 _Py_IDENTIFIER(decorator_list);
1245 decorator_list, expr_ty returns, int lineno, int col_offset, in FunctionDef() argument
1266 p->v.FunctionDef.decorator_list = decorator_list; in FunctionDef()
1275 * decorator_list, expr_ty returns, int lineno, int col_offset, in AsyncFunctionDef() argument
1296 p->v.AsyncFunctionDef.decorator_list = decorator_list; in AsyncFunctionDef()
1305 body, asdl_seq * decorator_list, int lineno, int col_offset, PyArena in ClassDef() argument
1322 p->v.ClassDef.decorator_list = decorator_list; in ClassDef()
2650 value = ast2obj_list(o->v.FunctionDef.decorator_list, ast2obj_expr); in ast2obj_stmt()
2679 value = ast2obj_list(o->v.AsyncFunctionDef.decorator_list, in ast2obj_stmt()
2714 value = ast2obj_list(o->v.ClassDef.decorator_list, ast2obj_expr); in ast2obj_stmt()
[all …]
Dsymtable.c1129 if (s->v.FunctionDef.decorator_list) in symtable_visit_stmt()
1130 VISIT_SEQ(st, expr, s->v.FunctionDef.decorator_list); in symtable_visit_stmt()
1146 if (s->v.ClassDef.decorator_list) in symtable_visit_stmt()
1147 VISIT_SEQ(st, expr, s->v.ClassDef.decorator_list); in symtable_visit_stmt()
1346 if (s->v.AsyncFunctionDef.decorator_list) in symtable_visit_stmt()
1347 VISIT_SEQ(st, expr, s->v.AsyncFunctionDef.decorator_list); in symtable_visit_stmt()
Dast_opt.c685 CALL_SEQ(astfold_expr, expr_ty, node_->v.FunctionDef.decorator_list); in astfold_stmt()
691 CALL_SEQ(astfold_expr, expr_ty, node_->v.AsyncFunctionDef.decorator_list); in astfold_stmt()
698 CALL_SEQ(astfold_expr, expr_ty, node_->v.ClassDef.decorator_list); in astfold_stmt()
Dast.c383 validate_exprs(stmt->v.FunctionDef.decorator_list, Load, 0) && in validate_stmt()
390 validate_exprs(stmt->v.ClassDef.decorator_list, Load, 0); in validate_stmt()
504 validate_exprs(stmt->v.AsyncFunctionDef.decorator_list, Load, 0) && in validate_stmt()
Dcompile.c1889 decos = s->v.AsyncFunctionDef.decorator_list; in compiler_function()
1899 decos = s->v.FunctionDef.decorator_list; in compiler_function()
1970 asdl_seq* decos = s->v.ClassDef.decorator_list; in compiler_class()
/external/python/cpython3/Lib/test/
Dtest_ast.py695 def cls(bases=None, keywords=None, body=None, decorator_list=None): argument
702 if decorator_list is None:
703 decorator_list = []
705 body, decorator_list)
712 self.stmt(cls(decorator_list=[ast.Name("x", ast.Store())]),
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity.py401 node.decorator_list = self.visit_block(node.decorator_list)
/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/Tools/parser/
Dunparse.py221 for deco in t.decorator_list:
249 for deco in t.decorator_list:
/external/tensorflow/tensorflow/python/autograph/impl/
Dconversion.py288 decorator_list=[])