Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dtype_info.py201 if item.optional_vars is not None:
202 ast_util.apply_to_single_assignments((item.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.asdl130 withitem = (expr context_expr, expr? optional_vars)
/external/python/cpython3/Tools/parser/
Dunparse.py665 if t.optional_vars:
667 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.c436 (item->optional_vars && !validate_expr(item->optional_vars, Store))) in validate_stmt()
446 (item->optional_vars && !validate_expr(item->optional_vars, Store))) in validate_stmt()
3852 expr_ty context_expr, optional_vars = NULL; in ast_for_with_item() local
3859 optional_vars = ast_for_expr(c, CHILD(n, 2)); in ast_for_with_item()
3861 if (!optional_vars) { in ast_for_with_item()
3864 if (!set_context(c, optional_vars, Store, n)) { in ast_for_with_item()
3869 return withitem(context_expr, optional_vars, c->c_arena); in ast_for_with_item()
DPython-ast.c500 _Py_IDENTIFIER(optional_vars);
2551 withitem(expr_ty context_expr, expr_ty optional_vars, PyArena *arena) in withitem() argument
2563 p->optional_vars = optional_vars; in withitem()
3929 value = ast2obj_expr(o->optional_vars); in ast2obj_withitem()
8113 expr_ty optional_vars; in obj2ast_withitem() local
8133 optional_vars = NULL; in obj2ast_withitem()
8137 res = obj2ast_expr(tmp, &optional_vars, arena); in obj2ast_withitem()
8141 *out = withitem(context_expr, optional_vars, arena); in obj2ast_withitem()
Dsymtable.c1615 if (item->optional_vars) { in symtable_visit_withitem()
1616 VISIT(st, expr, item->optional_vars); in symtable_visit_withitem()
Dast_opt.c792 CALL_OPT(astfold_expr, expr_ty, node_->optional_vars); in astfold_withitem()
Dcompile.c4265 if (item->optional_vars) { in compiler_async_with()
4266 VISIT(c, expr, item->optional_vars); in compiler_async_with()
4353 if (item->optional_vars) { in compiler_with()
4354 VISIT(c, expr, item->optional_vars); in compiler_with()
/external/python/cpython3/Include/
DPython-ast.h438 expr_ty optional_vars; member
632 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()