Home
last modified time | relevance | path

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

/external/python/cpython2/Parser/
DPython.asdl28 | With(expr context_expr, expr? optional_vars, stmt* body)
/external/python/cpython3/Parser/
DPython.asdl122 withitem = (expr context_expr, expr? optional_vars)
/external/python/cpython2/Demo/parser/
Dunparse.py304 if t.optional_vars:
306 self.dispatch(t.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/cpython3/Python/
Dast.c410 (item->optional_vars && !validate_expr(item->optional_vars, Store))) in validate_stmt()
420 (item->optional_vars && !validate_expr(item->optional_vars, Store))) in validate_stmt()
4255 expr_ty context_expr, optional_vars = NULL; in ast_for_with_item() local
4262 optional_vars = ast_for_expr(c, CHILD(n, 2)); in ast_for_with_item()
4264 if (!optional_vars) { in ast_for_with_item()
4267 if (!set_context(c, optional_vars, Store, n)) { in ast_for_with_item()
4272 return withitem(context_expr, optional_vars, c->c_arena); in ast_for_with_item()
DPython-ast.c201 PyObject *optional_vars; member
446 Py_CLEAR(state->optional_vars); in _PyAST_Fini()
530 if ((state->optional_vars = PyUnicode_InternFromString("optional_vars")) == NULL) return 0; in init_identifiers()
1864 if (PyObject_SetAttr(state->withitem_type, state->optional_vars, Py_None) in init_types()
3340 withitem(expr_ty context_expr, expr_ty optional_vars, PyArena *arena) in withitem() argument
3352 p->optional_vars = optional_vars; in withitem()
4838 value = ast2obj_expr(state, o->optional_vars); in ast2obj_withitem()
4840 if (PyObject_SetAttr(result, state->optional_vars, value) == -1) in ast2obj_withitem()
9537 expr_ty optional_vars; in obj2ast_withitem() local
9552 if (_PyObject_LookupAttr(obj, state->optional_vars, &tmp) < 0) { in obj2ast_withitem()
[all …]
Dsymtable.c1779 if (item->optional_vars) { in symtable_visit_withitem()
1780 VISIT(st, expr, item->optional_vars); in symtable_visit_withitem()
Dast_opt.c737 CALL_OPT(astfold_expr, expr_ty, node_->optional_vars); in astfold_withitem()
Dcompile.c4860 if (item->optional_vars) { in compiler_async_with()
4861 VISIT(c, expr, item->optional_vars); in compiler_async_with()
4952 if (item->optional_vars) { in compiler_with()
4953 VISIT(c, expr, item->optional_vars); in compiler_with()
/external/python/cpython3/Include/
DPython-ast.h443 expr_ty optional_vars; member
684 withitem_ty _Py_withitem(expr_ty context_expr, expr_ty optional_vars, PyArena
/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.py1558 if node.optional_vars:
1560 self.traverse(node.optional_vars)
/external/python/cpython3/Doc/library/
Dast.rst1208 .. class:: withitem(context_expr, optional_vars)
1211 manager, often a :class:`Call` node. ``optional_vars`` is a :class:`Name`,
1227 optional_vars=Name(id='b', ctx=Store())),
1230 optional_vars=Name(id='d', ctx=Store()))],
/external/python/cpython3/Tools/c-analyzer/
Dknown.tsv1299 Python/Python-ast.c - PyId_optional_vars variable _Py_IDENTIFIER(optional_vars)