/external/tensorflow/tensorflow/python/autograph/converters/ |
D | return_statements.py | 84 return node, node.orelse 101 node.orelse, _ = self._visit_statement_block(node, node.orelse) 108 node.orelse, _ = self._visit_statement_block(node, node.orelse) 123 node.orelse, _ = self._visit_statement_block(node, node.orelse) 141 node.orelse, orelse_definitely_returns = self._visit_statement_block( 142 node, node.orelse) 305 node.orelse = self._visit_statement_block(node, node.orelse) 327 node.orelse = self._visit_statement_block(node, node.orelse) 337 node.orelse = self._visit_statement_block(node, node.orelse) 349 node.orelse = self._visit_statement_block(node, node.orelse)
|
D | break_statements.py | 80 node.orelse = self.visit_block(node.orelse) 85 guarded_orelse = self._guard_if_present(node.orelse, break_var) 99 orelse=guarded_orelse) 111 node.orelse = self.visit_block(node.orelse) 116 guarded_orelse = self._guard_if_present(node.orelse, break_var) 138 orelse=guarded_orelse)
|
D | continue_statements.py | 127 node.orelse = self._visit_non_loop_body(node.orelse) 135 node.orelse = self._visit_non_loop_body(node.orelse) 140 node.orelse = self._visit_non_loop_body(node.orelse) 150 node.orelse = self._visit_non_loop_body(node.orelse)
|
D | lists.py | 217 node.orelse = self._visit_and_process_block(node.orelse) 223 node.orelse = self._visit_and_process_block(node.orelse) 229 node.orelse = self._visit_and_process_block(node.orelse)
|
D | side_effect_guards.py | 120 node.orelse = self._visit_and_reindent(node.orelse) 125 node.orelse = self._visit_and_reindent(node.orelse)
|
D | conditional_expressions.py | 34 false_expr=node.orelse)
|
/external/tensorflow/tensorflow/python/autograph/operators/ |
D | control_flow.py | 231 def if_stmt(cond, body, orelse, get_state, set_state): argument 256 return tf_if_stmt(cond, body, orelse, get_state, set_state) 258 return _py_if_stmt(cond, body, orelse) 261 def tf_if_stmt(cond, body, orelse, get_state, set_state): argument 264 checkpointed_orelse = _wrap_in_state_isolation(orelse, get_state, 307 def _py_if_stmt(cond, body, orelse): argument 309 return body() if cond else orelse()
|
D | control_flow_test.py | 124 orelse=lambda: -1, 132 orelse=lambda: (-1, -2),
|
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/ |
D | type_info.py | 125 node.orelse = self._visit_block(node.orelse) 131 node.orelse = self._visit_block(node.orelse) 137 node.orelse = self._visit_block(node.orelse)
|
D | reaching_definitions_test.py | 137 self.assertHasDefs(fn_body[1].orelse[0].targets[0], 1) 162 self.assertHasDefs(fn_body[1].orelse[0].targets[0], 1) 257 second_def = fn_body[1].orelse[0].targets[0]
|
/external/python/cpython3/Parser/ |
D | Python.asdl | 34 -- use 'orelse' because else is a keyword in target languages 35 | For(expr target, expr iter, stmt* body, stmt* orelse) 36 | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse) 37 | While(expr test, stmt* body, stmt* orelse) 38 | If(expr test, stmt* body, stmt* orelse) 43 | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) 63 | IfExp(expr test, expr body, expr orelse)
|
/external/python/cpython2/Demo/parser/ |
D | unparse.py | 192 if t.orelse: 195 self.dispatch(t.orelse) 261 if t.orelse: 264 self.dispatch(t.orelse) 274 while (t.orelse and len(t.orelse) == 1 and 275 isinstance(t.orelse[0], ast.If)): 276 t = t.orelse[0] 283 if t.orelse: 286 self.dispatch(t.orelse) 295 if t.orelse: [all …]
|
/external/python/cpython2/Parser/ |
D | Python.asdl | 24 -- use 'orelse' because else is a keyword in target languages 25 | For(expr target, expr iter, stmt* body, stmt* orelse) 26 | While(expr test, stmt* body, stmt* orelse) 27 | If(expr test, stmt* body, stmt* orelse) 32 | TryExcept(stmt* body, excepthandler* handlers, stmt* orelse) 57 | IfExp(expr test, expr body, expr orelse)
|
/external/python/cpython3/Tools/parser/ |
D | unparse.py | 196 if t.orelse: 199 self.dispatch(t.orelse) 277 if t.orelse: 280 self.dispatch(t.orelse) 290 while (t.orelse and len(t.orelse) == 1 and 291 isinstance(t.orelse[0], ast.If)): 292 t = t.orelse[0] 299 if t.orelse: 302 self.dispatch(t.orelse) 311 if t.orelse: [all …]
|
/external/tensorflow/tensorflow/python/autograph/pyct/testing/ |
D | codegen.py | 188 orelse = self.sample_node_list( 193 node = gast.If(test, body, orelse) 202 orelse = [] # not generating else statements 204 node = gast.While(test, body, orelse)
|
/external/python/cpython2/Include/ |
D | Python-ast.h | 115 asdl_seq *orelse; member 121 asdl_seq *orelse; member 127 asdl_seq *orelse; member 145 asdl_seq *orelse; member 220 expr_ty orelse; member 407 orelse, int lineno, int col_offset, PyArena *arena); 409 stmt_ty _Py_While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, 412 stmt_ty _Py_If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, 421 stmt_ty _Py_TryExcept(asdl_seq * body, asdl_seq * handlers, asdl_seq * orelse, 462 expr_ty _Py_IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 131 asdl_seq *orelse; member 138 asdl_seq *orelse; member 144 asdl_seq *orelse; member 150 asdl_seq *orelse; member 171 asdl_seq *orelse; member 243 expr_ty orelse; member 478 orelse, int lineno, int col_offset, PyArena *arena); 481 orelse, int lineno, int col_offset, PyArena *arena); 483 stmt_ty _Py_While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, 486 stmt_ty _Py_If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, [all …]
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 100 _Py_IDENTIFIER(orelse); 1438 For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in For() argument 1459 p->v.For.orelse = orelse; in For() 1466 AsyncFor(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in AsyncFor() argument 1487 p->v.AsyncFor.orelse = orelse; in AsyncFor() 1494 While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in While() argument 1509 p->v.While.orelse = orelse; in While() 1516 If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in If() argument 1531 p->v.If.orelse = orelse; in If() 1585 Try(asdl_seq * body, asdl_seq * handlers, asdl_seq * orelse, asdl_seq * in Try() argument [all …]
|
D | compile.c | 1431 find_ann(st->v.For.orelse); in find_ann() 1435 find_ann(st->v.AsyncFor.orelse); in find_ann() 1439 find_ann(st->v.While.orelse); in find_ann() 1443 find_ann(st->v.If.orelse); in find_ann() 1461 find_ann(st->v.Try.orelse); in find_ann() 2166 if (!compiler_jump_if(c, e->v.IfExp.orelse, next, cond)) in compiler_jump_if() 2235 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp() 2308 if (s->v.If.orelse) in compiler_if() 2309 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if() 2313 if (asdl_seq_LEN(s->v.If.orelse)) { in compiler_if() [all …]
|
D | ast.c | 242 validate_expr(exp->v.IfExp.orelse, Load); in validate_expr() 416 validate_stmts(stmt->v.For.orelse); in validate_stmt() 421 validate_stmts(stmt->v.AsyncFor.orelse); in validate_stmt() 425 validate_stmts(stmt->v.While.orelse); in validate_stmt() 429 validate_stmts(stmt->v.If.orelse); in validate_stmt() 469 asdl_seq_LEN(stmt->v.Try.orelse)) { in validate_stmt() 482 (!asdl_seq_LEN(stmt->v.Try.orelse) || in validate_stmt() 483 validate_stmts(stmt->v.Try.orelse)); in validate_stmt() 1726 expr_ty expression, body, orelse; in ast_for_ifexpr() local 1735 orelse = ast_for_expr(c, CHILD(n, 4)); in ast_for_ifexpr() [all …]
|
D | ast_opt.c | 539 CALL(astfold_expr, expr_ty, node_->v.IfExp.orelse); in astfold_expr() 723 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.For.orelse); in astfold_stmt() 731 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.AsyncFor.orelse); in astfold_stmt() 736 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.While.orelse); in astfold_stmt() 741 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.If.orelse); in astfold_stmt() 758 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.Try.orelse); in astfold_stmt()
|
D | symtable.c | 1217 if (s->v.For.orelse) in symtable_visit_stmt() 1218 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt() 1223 if (s->v.While.orelse) in symtable_visit_stmt() 1224 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt() 1230 if (s->v.If.orelse) in symtable_visit_stmt() 1231 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt() 1243 VISIT_SEQ(st, stmt, s->v.Try.orelse); in symtable_visit_stmt() 1366 if (s->v.AsyncFor.orelse) in symtable_visit_stmt() 1367 VISIT_SEQ(st, stmt, s->v.AsyncFor.orelse); in symtable_visit_stmt() 1412 VISIT(st, expr, e->v.IfExp.orelse); in symtable_visit_expr()
|
/external/python/cpython2/Python/ |
D | Python-ast.c | 1190 For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in For() argument 1211 p->v.For.orelse = orelse; in For() 1218 While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in While() argument 1233 p->v.While.orelse = orelse; in While() 1240 If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in If() argument 1255 p->v.If.orelse = orelse; in If() 1301 TryExcept(asdl_seq * body, asdl_seq * handlers, asdl_seq * orelse, int lineno, in TryExcept() argument 1311 p->v.TryExcept.orelse = orelse; in TryExcept() 1584 IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, in IfExp() argument 1598 if (!orelse) { in IfExp() [all …]
|
D | compile.c | 1487 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp() 1590 if (s->v.If.orelse) in compiler_if() 1591 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if() 1595 if (s->v.If.orelse) { in compiler_if() 1606 if (s->v.If.orelse) { in compiler_if() 1608 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if() 1638 VISIT_SEQ(c, stmt, s->v.For.orelse); in compiler_for() 1646 basicblock *loop, *orelse, *end, *anchor = NULL; in compiler_while() local 1650 if (s->v.While.orelse) in compiler_while() 1651 VISIT_SEQ(c, stmt, s->v.While.orelse); in compiler_while() [all …]
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | cfg.py | 727 for stmt in node.orelse: 749 for stmt in node.orelse: 774 for stmt in node.orelse: 792 for stmt in node.orelse:
|