Home
last modified time | relevance | path

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

/third_party/python/Parser/
DPython.asdl12 stmt* body, expr* decorator_list, expr? returns,
15 stmt* body, expr* decorator_list, expr? returns,
22 expr* decorator_list)
/third_party/python/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
/third_party/python/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.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()
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()
Dcompile.c2336 decos = s->v.AsyncFunctionDef.decorator_list; in compiler_function()
2346 decos = s->v.FunctionDef.decorator_list; in compiler_function()
2428 asdl_expr_seq *decos = s->v.ClassDef.decorator_list; in compiler_class()
/third_party/python/Lib/test/
Dtest_ast.py677 attr_b = tree.body[0].decorator_list[0].value
1178 def cls(bases=None, keywords=None, body=None, decorator_list=None): argument
1185 if decorator_list is None:
1186 decorator_list = []
1188 body, decorator_list)
1195 self.stmt(cls(decorator_list=[ast.Name("x", ast.Store())]),
/third_party/python/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=[])],
/third_party/python/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