Home
last modified time | relevance | path

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

/third_party/python/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.c5043 if (item->optional_vars) { in compiler_async_with()
5044 VISIT(c, expr, item->optional_vars); in compiler_async_with()
5135 if (item->optional_vars) { in compiler_with()
5136 VISIT(c, expr, item->optional_vars); in compiler_with()
/third_party/python/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,
/third_party/python/Parser/
DPython.asdl125 withitem = (expr context_expr, expr? optional_vars)
/third_party/python/Lib/
Dast.py1579 if node.optional_vars:
1581 self.traverse(node.optional_vars)
/third_party/python/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()))],