Searched refs:FunctionDef (Results 1 – 11 of 11) sorted by relevance
1005 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt()1007 if (s->v.FunctionDef.args->defaults) in symtable_visit_stmt()1008 VISIT_SEQ(st, expr, s->v.FunctionDef.args->defaults); in symtable_visit_stmt()1009 if (s->v.FunctionDef.decorator_list) in symtable_visit_stmt()1010 VISIT_SEQ(st, expr, s->v.FunctionDef.decorator_list); in symtable_visit_stmt()1011 if (!symtable_enter_block(st, s->v.FunctionDef.name, in symtable_visit_stmt()1014 VISIT_IN_BLOCK(st, arguments, s->v.FunctionDef.args, s); in symtable_visit_stmt()1015 VISIT_SEQ_IN_BLOCK(st, stmt, s->v.FunctionDef.body, s); in symtable_visit_stmt()
1347 arguments_ty args = s->v.FunctionDef.args; in compiler_function()1348 asdl_seq* decos = s->v.FunctionDef.decorator_list; in compiler_function()1358 if (!compiler_enter_scope(c, s->v.FunctionDef.name, (void *)s, in compiler_function()1362 st = (stmt_ty)asdl_seq_GET(s->v.FunctionDef.body, 0); in compiler_function()1375 n = asdl_seq_LEN(s->v.FunctionDef.body); in compiler_function()1378 st = (stmt_ty)asdl_seq_GET(s->v.FunctionDef.body, i); in compiler_function()1393 return compiler_nameop(c, s->v.FunctionDef.name, Store); in compiler_function()
1041 FunctionDef(identifier name, arguments_ty args, asdl_seq * body, asdl_seq * in FunctionDef() function1059 p->v.FunctionDef.name = name; in FunctionDef()1060 p->v.FunctionDef.args = args; in FunctionDef()1061 p->v.FunctionDef.body = body; in FunctionDef()1062 p->v.FunctionDef.decorator_list = decorator_list; in FunctionDef()2202 value = ast2obj_identifier(o->v.FunctionDef.name); in ast2obj_stmt()2207 value = ast2obj_arguments(o->v.FunctionDef.args); in ast2obj_stmt()2212 value = ast2obj_list(o->v.FunctionDef.body, ast2obj_stmt); in ast2obj_stmt()2217 value = ast2obj_list(o->v.FunctionDef.decorator_list, in ast2obj_stmt()3611 *out = FunctionDef(name, args, body, decorator_list, lineno, in obj2ast_stmt()
915 return FunctionDef(name, args, body, decorator_seq, LINENO(n), in ast_for_funcdef()
193 if not isinstance(node, (FunctionDef, ClassDef, Module)):
12 stmt = FunctionDef(identifier name, arguments args,
77 } FunctionDef; member383 #define FunctionDef(a0, a1, a2, a3, a4, a5, a6) _Py_FunctionDef(a0, a1, a2, a3, a4, a5, a6) macro
294 _ast.FunctionDef = type(m.body[0])
229 if not isinstance(node, (FunctionDef, ClassDef, Module)):
149 :class:`FunctionDef`, :class:`ClassDef` or :class:`Module` node), or ``None``
687 "FunctionDef"