Home
last modified time | relevance | path

Searched refs:optional_vars (Results 1 – 18 of 18) sorted by relevance

/external/python/cpython3/Python/
Dast.c752 (item->optional_vars && !validate_expr(state, item->optional_vars, Store))) in validate_stmt()
763 (item->optional_vars && !validate_expr(state, item->optional_vars, Store))) in validate_stmt()
DPython-ast.c235 Py_CLEAR(state->optional_vars); in _PyAST_Fini()
334 if ((state->optional_vars = PyUnicode_InternFromString("optional_vars")) == NULL) return 0; in init_identifiers()
1763 if (PyObject_SetAttr(state->withitem_type, state->optional_vars, Py_None) in init_types()
3355 _PyAST_withitem(expr_ty context_expr, expr_ty optional_vars, PyArena *arena) in _PyAST_withitem() argument
3367 p->optional_vars = optional_vars; in _PyAST_withitem()
5095 value = ast2obj_expr(state, o->optional_vars); in ast2obj_withitem()
5097 if (PyObject_SetAttr(result, state->optional_vars, value) == -1) in ast2obj_withitem()
10818 expr_ty optional_vars; in obj2ast_withitem() local
10837 if (_PyObject_LookupAttr(obj, state->optional_vars, &tmp) < 0) { in obj2ast_withitem()
10842 optional_vars = NULL; in obj2ast_withitem()
[all …]
Dsymtable.c1929 if (item->optional_vars) { in symtable_visit_withitem()
1930 VISIT(st, expr, item->optional_vars); in symtable_visit_withitem()
Dast_opt.c791 CALL_OPT(astfold_expr, expr_ty, node_->optional_vars); in astfold_withitem()
Dcompile.c5044 if (item->optional_vars) { in compiler_async_with()
5045 VISIT(c, expr, item->optional_vars); in compiler_async_with()
5136 if (item->optional_vars) { in compiler_with()
5137 VISIT(c, expr, item->optional_vars); in compiler_with()
/external/python/cpython3/Include/internal/
Dpycore_ast_state.h221 PyObject *optional_vars; member
Dpycore_ast.h553 expr_ty optional_vars; member
807 withitem_ty _PyAST_withitem(expr_ty context_expr, expr_ty optional_vars,
/external/python/cpython2/Parser/
DPython.asdl28 | With(expr context_expr, expr? optional_vars, stmt* body)
/external/python/cpython2/Demo/parser/
Dunparse.py304 if t.optional_vars:
306 self.dispatch(t.optional_vars)
/external/python/cpython3/Parser/
DPython.asdl125 withitem = (expr context_expr, expr? optional_vars)
/external/python/cpython2/Include/
DPython-ast.h132 expr_ty optional_vars; member
415 stmt_ty _Py_With(expr_ty context_expr, expr_ty optional_vars, asdl_seq * body,
/external/python/cpython2/Python/
Dast.c3145 expr_ty context_expr, optional_vars = NULL; in ast_for_with_item() local
3152 optional_vars = ast_for_expr(c, CHILD(n, 2)); in ast_for_with_item()
3154 if (!optional_vars) { in ast_for_with_item()
3157 if (!set_context(c, optional_vars, Store, n)) { in ast_for_with_item()
3162 return With(context_expr, optional_vars, content, LINENO(n), in ast_for_with_item()
Dsymtable.c1180 if (s->v.With.optional_vars) { in symtable_visit_stmt()
1181 VISIT(st, expr, s->v.With.optional_vars); in symtable_visit_stmt()
DPython-ast.c1262 With(expr_ty context_expr, expr_ty optional_vars, asdl_seq * body, int lineno, in With() argument
1276 p->v.With.optional_vars = optional_vars; in With()
2391 value = ast2obj_expr(o->v.With.optional_vars); in ast2obj_stmt()
4228 expr_ty optional_vars; in obj2ast_stmt() local
4247 res = obj2ast_expr(tmp, &optional_vars, arena); in obj2ast_stmt()
4252 optional_vars = NULL; in obj2ast_stmt()
4283 *out = With(context_expr, optional_vars, body, lineno, in obj2ast_stmt()
Dcompile.c2926 if (s->v.With.optional_vars) { in compiler_with()
2927 VISIT(c, expr, s->v.With.optional_vars); in compiler_with()
/external/python/cpython3/Lib/
Dast.py1579 if node.optional_vars:
1581 self.traverse(node.optional_vars)
/external/python/cpython3/Doc/library/
Dast.rst1214 .. class:: withitem(context_expr, optional_vars)
1217 manager, often a :class:`Call` node. ``optional_vars`` is a :class:`Name`,
1233 optional_vars=Name(id='b', ctx=Store())),
1236 optional_vars=Name(id='d', ctx=Store()))],
/external/python/cpython3/Doc/data/
Dpython3.10.abi6833 …<var-decl name='optional_vars' type-id='type-id-16' visibility='default' filepath='./Include/inter…
14090 …<var-decl name='optional_vars' type-id='type-id-569' visibility='default' filepath='./Include/inte…