Home
last modified time | relevance | path

Searched refs:context_expr (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dreaching_definitions_test.py295 self.assertHasDefs(fn_body[0].items[0].context_expr.func, 0)
296 self.assertHasDefs(fn_body[0].items[0].context_expr.args[0], 1)
/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/Include/
DPython-ast.h131 expr_ty context_expr; member
415 stmt_ty _Py_With(expr_ty context_expr, expr_ty optional_vars, asdl_seq * body,
/external/python/cpython3/Include/
DPython-ast.h442 expr_ty context_expr; member
684 withitem_ty _Py_withitem(expr_ty context_expr, expr_ty optional_vars, PyArena
/external/python/cpython2/Demo/parser/
Dunparse.py303 self.dispatch(t.context_expr)
/external/python/cpython3/Python/
Dast.c409 if (!validate_expr(item->context_expr, Load) || in validate_stmt()
419 if (!validate_expr(item->context_expr, Load) || in validate_stmt()
4255 expr_ty context_expr, optional_vars = NULL; in ast_for_with_item() local
4258 context_expr = ast_for_expr(c, CHILD(n, 0)); in ast_for_with_item()
4259 if (!context_expr) in ast_for_with_item()
4272 return withitem(context_expr, optional_vars, c->c_arena); in ast_for_with_item()
DPython-ast.c157 PyObject *context_expr; member
402 Py_CLEAR(state->context_expr); in _PyAST_Fini()
492 if ((state->context_expr = PyUnicode_InternFromString("context_expr")) == NULL) return 0; in init_identifiers()
3340 withitem(expr_ty context_expr, expr_ty optional_vars, PyArena *arena) in withitem() argument
3343 if (!context_expr) { in withitem()
3351 p->context_expr = context_expr; in withitem()
4833 value = ast2obj_expr(state, o->context_expr); in ast2obj_withitem()
4835 if (PyObject_SetAttr(result, state->context_expr, value) == -1) in ast2obj_withitem()
9536 expr_ty context_expr; in obj2ast_withitem() local
9539 if (_PyObject_LookupAttr(obj, state->context_expr, &tmp) < 0) { in obj2ast_withitem()
[all …]
Dast_opt.c736 CALL(astfold_expr, expr_ty, node_->context_expr); in astfold_withitem()
Dsymtable.c1778 VISIT(st, expr, item->context_expr); in symtable_visit_withitem()
Dcompile.c4845 VISIT(c, expr, item->context_expr); in compiler_async_with()
4942 VISIT(c, expr, item->context_expr); in compiler_with()
/external/python/cpython2/Python/
Dast.c3145 expr_ty context_expr, optional_vars = NULL; in ast_for_with_item() local
3148 context_expr = ast_for_expr(c, CHILD(n, 0)); in ast_for_with_item()
3149 if (!context_expr) in ast_for_with_item()
3162 return With(context_expr, optional_vars, content, LINENO(n), in ast_for_with_item()
DPython-ast.c1262 With(expr_ty context_expr, expr_ty optional_vars, asdl_seq * body, int lineno, in With() argument
1266 if (!context_expr) { in With()
1275 p->v.With.context_expr = context_expr; in With()
2386 value = ast2obj_expr(o->v.With.context_expr); in ast2obj_stmt()
4227 expr_ty context_expr; in obj2ast_stmt() local
4235 res = obj2ast_expr(tmp, &context_expr, arena); in obj2ast_stmt()
4283 *out = With(context_expr, optional_vars, body, lineno, in obj2ast_stmt()
Dsymtable.c1179 VISIT(st, expr, s->v.With.context_expr); in symtable_visit_stmt()
Dcompile.c2914 VISIT(c, expr, s->v.With.context_expr); in compiler_with()
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcfg.py91 self.ast_node.context_expr, include_encoding_marker=False).strip()
/external/python/cpython3/Doc/library/
Dast.rst1208 .. class:: withitem(context_expr, optional_vars)
1210 A single context manager in a ``with`` block. ``context_expr`` is the context
1226 context_expr=Name(id='a', ctx=Load()),
1229 context_expr=Name(id='c', ctx=Load()),
/external/python/cpython3/Lib/
Dast.py1557 self.traverse(node.context_expr)
/external/python/cpython3/Tools/c-analyzer/
Dknown.tsv1070 Python/Python-ast.c - PyId_context_expr variable _Py_IDENTIFIER(context_expr)