Lines Matching defs:ctx

191     Py_CLEAR(state->ctx);
297 if ((state->ctx = PyUnicode_InternFromString("ctx")) == NULL) return 0;
609 "ctx",
614 "ctx",
618 "ctx",
622 "ctx",
626 "ctx",
630 "ctx",
1331 " | Attribute(expr value, identifier attr, expr_context ctx)\n"
1332 " | Subscript(expr value, expr slice, expr_context ctx)\n"
1333 " | Starred(expr value, expr_context ctx)\n"
1334 " | Name(identifier id, expr_context ctx)\n"
1335 " | List(expr* elts, expr_context ctx)\n"
1336 " | Tuple(expr* elts, expr_context ctx)\n"
1435 "Attribute(expr value, identifier attr, expr_context ctx)");
1439 "Subscript(expr value, expr slice, expr_context ctx)");
1443 "Starred(expr value, expr_context ctx)");
1447 "Name(identifier id, expr_context ctx)");
1451 "List(expr* elts, expr_context ctx)");
1455 "Tuple(expr* elts, expr_context ctx)");
3069 _PyAST_Attribute(expr_ty value, identifier attr, expr_context_ty ctx, int
3084 if (!ctx) {
3086 "field 'ctx' is required for Attribute");
3095 p->v.Attribute.ctx = ctx;
3104 _PyAST_Subscript(expr_ty value, expr_ty slice, expr_context_ty ctx, int lineno,
3119 if (!ctx) {
3121 "field 'ctx' is required for Subscript");
3130 p->v.Subscript.ctx = ctx;
3139 _PyAST_Starred(expr_ty value, expr_context_ty ctx, int lineno, int col_offset,
3148 if (!ctx) {
3150 "field 'ctx' is required for Starred");
3158 p->v.Starred.ctx = ctx;
3167 _PyAST_Name(identifier id, expr_context_ty ctx, int lineno, int col_offset, int
3176 if (!ctx) {
3178 "field 'ctx' is required for Name");
3186 p->v.Name.ctx = ctx;
3195 _PyAST_List(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int
3199 if (!ctx) {
3201 "field 'ctx' is required for List");
3209 p->v.List.ctx = ctx;
3218 _PyAST_Tuple(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int
3222 if (!ctx) {
3224 "field 'ctx' is required for Tuple");
3232 p->v.Tuple.ctx = ctx;
4596 value = ast2obj_expr_context(state, o->v.Attribute.ctx);
4598 if (PyObject_SetAttr(result, state->ctx, value) == -1)
4616 value = ast2obj_expr_context(state, o->v.Subscript.ctx);
4618 if (PyObject_SetAttr(result, state->ctx, value) == -1)
4631 value = ast2obj_expr_context(state, o->v.Starred.ctx);
4633 if (PyObject_SetAttr(result, state->ctx, value) == -1)
4646 value = ast2obj_expr_context(state, o->v.Name.ctx);
4648 if (PyObject_SetAttr(result, state->ctx, value) == -1)
4661 value = ast2obj_expr_context(state, o->v.List.ctx);
4663 if (PyObject_SetAttr(result, state->ctx, value) == -1)
4676 value = ast2obj_expr_context(state, o->v.Tuple.ctx);
4678 if (PyObject_SetAttr(result, state->ctx, value) == -1)
9473 expr_context_ty ctx;
9509 if (_PyObject_LookupAttr(obj, state->ctx, &tmp) < 0) {
9513 PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Attribute");
9521 res = obj2ast_expr_context(state, tmp, &ctx, arena);
9526 *out = _PyAST_Attribute(value, attr, ctx, lineno, col_offset,
9539 expr_context_ty ctx;
9575 if (_PyObject_LookupAttr(obj, state->ctx, &tmp) < 0) {
9579 PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Subscript");
9587 res = obj2ast_expr_context(state, tmp, &ctx, arena);
9592 *out = _PyAST_Subscript(value, slice, ctx, lineno, col_offset,
9604 expr_context_ty ctx;
9623 if (_PyObject_LookupAttr(obj, state->ctx, &tmp) < 0) {
9627 PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Starred");
9635 res = obj2ast_expr_context(state, tmp, &ctx, arena);
9640 *out = _PyAST_Starred(value, ctx, lineno, col_offset, end_lineno,
9652 expr_context_ty ctx;
9671 if (_PyObject_LookupAttr(obj, state->ctx, &tmp) < 0) {
9675 PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Name");
9683 res = obj2ast_expr_context(state, tmp, &ctx, arena);
9688 *out = _PyAST_Name(id, ctx, lineno, col_offset, end_lineno,
9700 expr_context_ty ctx;
9739 if (_PyObject_LookupAttr(obj, state->ctx, &tmp) < 0) {
9743 PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from List");
9751 res = obj2ast_expr_context(state, tmp, &ctx, arena);
9756 *out = _PyAST_List(elts, ctx, lineno, col_offset, end_lineno,
9768 expr_context_ty ctx;
9807 if (_PyObject_LookupAttr(obj, state->ctx, &tmp) < 0) {
9811 PyErr_SetString(PyExc_TypeError, "required field \"ctx\" missing from Tuple");
9819 res = obj2ast_expr_context(state, tmp, &ctx, arena);
9824 *out = _PyAST_Tuple(elts, ctx, lineno, col_offset, end_lineno,