Home
last modified time | relevance | path

Searched refs:decorator_seq (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Python/
Dast.c874 asdl_seq* decorator_seq; in ast_for_decorators() local
879 decorator_seq = asdl_seq_new(NCH(n), c->c_arena); in ast_for_decorators()
880 if (!decorator_seq) in ast_for_decorators()
887 asdl_seq_SET(decorator_seq, i, d); in ast_for_decorators()
889 return decorator_seq; in ast_for_decorators()
893 ast_for_funcdef(struct compiling *c, const node *n, asdl_seq *decorator_seq) in ast_for_funcdef() argument
915 return FunctionDef(name, args, body, decorator_seq, LINENO(n), in ast_for_funcdef()
924 asdl_seq *decorator_seq = NULL; in ast_for_decorated() local
928 decorator_seq = ast_for_decorators(c, CHILD(n, 0)); in ast_for_decorated()
929 if (!decorator_seq) in ast_for_decorated()
[all …]
/external/python/cpython3/Python/
Dast.c1694 asdl_seq* decorator_seq; in ast_for_decorators() local
1699 decorator_seq = _Py_asdl_seq_new(NCH(n), c->c_arena); in ast_for_decorators()
1700 if (!decorator_seq) in ast_for_decorators()
1707 asdl_seq_SET(decorator_seq, i, d); in ast_for_decorators()
1709 return decorator_seq; in ast_for_decorators()
1714 asdl_seq *decorator_seq, bool is_async) in ast_for_funcdef_impl() argument
1776 return AsyncFunctionDef(name, args, body, decorator_seq, returns, type_comment, in ast_for_funcdef_impl()
1779 return FunctionDef(name, args, body, decorator_seq, returns, type_comment, in ast_for_funcdef_impl()
1784 ast_for_async_funcdef(struct compiling *c, const node *n, asdl_seq *decorator_seq) in ast_for_async_funcdef() argument
1791 return ast_for_funcdef_impl(c, n, decorator_seq, in ast_for_async_funcdef()
[all …]