Home | History | Annotate | Download | only in Python

Lines Matching defs:FunctionDef

673         FunctionDef_type = make_type("FunctionDef", stmt_type,

1024 FunctionDef(identifier name, arguments_ty args, asdl_seq * body, asdl_seq *
1030 "field name is required for FunctionDef");
1035 "field args is required for FunctionDef");
1042 p->v.FunctionDef.name = name;
1043 p->v.FunctionDef.args = args;
1044 p->v.FunctionDef.body = body;
1045 p->v.FunctionDef.decorator_list = decorator_list;
2185 value = ast2obj_identifier(o->v.FunctionDef.name);
2190 value = ast2obj_arguments(o->v.FunctionDef.args);
2195 value = ast2obj_list(o->v.FunctionDef.body, ast2obj_stmt);
2200 value = ast2obj_list(o->v.FunctionDef.decorator_list,
3509 PyErr_SetString(PyExc_TypeError, "required field \"name\" missing from FunctionDef");
3521 PyErr_SetString(PyExc_TypeError, "required field \"args\" missing from FunctionDef");
3531 PyErr_Format(PyExc_TypeError, "FunctionDef field \"body\" must be a list, not a %.200s", tmp->ob_type->tp_name);
3546 PyErr_SetString(PyExc_TypeError, "required field \"body\" missing from FunctionDef");
3556 PyErr_Format(PyExc_TypeError, "FunctionDef field \"decorator_list\" must be a list, not a %.200s", tmp->ob_type->tp_name);
3571 PyErr_SetString(PyExc_TypeError, "required field \"decorator_list\" missing from FunctionDef");
3574 *out = FunctionDef(name, args, body, decorator_list, lineno,
6584 if (PyDict_SetItemString(d, "FunctionDef", (PyObject*)FunctionDef_type)