/external/tensorflow/tensorflow/python/autograph/converters/ |
D | break_statements.py | 83 node.orelse = self.visit_block(node.orelse) 92 template, test=node.test, body=node.body, orelse=node.orelse) 101 guarded_orelse = self._guard_if_present(node.orelse, break_var) 114 orelse=guarded_orelse) 130 node.orelse = self.visit_block(node.orelse) 143 orelse=node.orelse) 153 guarded_orelse = self._guard_if_present(node.orelse, break_var) 174 orelse=guarded_orelse)
|
D | return_statements.py | 86 return node, node.orelse 103 node.orelse, _ = self._visit_statement_block(node, node.orelse) 110 node.orelse, _ = self._visit_statement_block(node, node.orelse) 125 node.orelse, _ = self._visit_statement_block(node, node.orelse) 143 node.orelse, orelse_definitely_returns = self._visit_statement_block( 144 node, node.orelse) 294 node.orelse = self._visit_statement_block(node, node.orelse) 316 node.orelse = self._visit_statement_block(node, node.orelse) 326 node.orelse = self._visit_statement_block(node, node.orelse) 338 node.orelse = self._visit_statement_block(node, node.orelse)
|
D | continue_statements.py | 129 node.orelse = self._visit_non_loop_body(node.orelse) 137 node.orelse = self._visit_non_loop_body(node.orelse) 142 node.orelse = self._visit_non_loop_body(node.orelse) 152 node.orelse = self._visit_non_loop_body(node.orelse)
|
D | lists.py | 218 node.orelse = self._visit_and_process_block(node.orelse) 224 node.orelse = self._visit_and_process_block(node.orelse) 230 node.orelse = self._visit_and_process_block(node.orelse)
|
D | conditional_expressions.py | 44 false_expr=node.orelse,
|
/external/python/cpython3/Parser/ |
D | Python.asdl | 31 -- use 'orelse' because else is a keyword in target languages 32 | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) 33 | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) 34 | While(expr test, stmt* body, stmt* orelse) 35 | If(expr test, stmt* body, stmt* orelse) 40 | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) 60 | IfExp(expr test, expr body, expr orelse)
|
/external/tensorflow/tensorflow/python/autograph/operators/ |
D | control_flow_test.py | 953 def orelse(): function 965 orelse=orelse, 983 def orelse(): function 995 orelse=orelse, 1014 def orelse(): function 1027 orelse=orelse, 1045 def orelse(): function 1053 orelse=orelse, 1072 def orelse(): function 1081 orelse=orelse, [all …]
|
D | control_flow_deprecated_py2.py | 1010 orelse, argument 1042 return tf_if_stmt(cond, body, orelse, get_state, set_state, 1045 return _py_if_stmt(cond, body, orelse) 1048 def tf_if_stmt(cond, body, orelse, get_state, set_state, basic_symbol_names, argument 1052 orelse = _wrap_disallow_undefs_from_cond(orelse, branch_name='else') 1054 orelse = _isolate_state(orelse, get_state, set_state) 1074 result[orelse_branch] = orelse() 1152 def _py_if_stmt(cond, body, orelse): argument 1154 return body() if cond else orelse()
|
D | control_flow.py | 1125 def if_stmt(cond, body, orelse, get_state, set_state, symbol_names, nouts): argument 1170 _tf_if_stmt(cond, body, orelse, get_state, set_state, symbol_names, nouts) 1172 _py_if_stmt(cond, body, orelse) 1176 cond, body, orelse, get_state, set_state, symbol_names, nouts): argument 1207 orelse() 1223 def _py_if_stmt(cond, body, orelse): argument 1225 return body() if cond else 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/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/tensorflow/tensorflow/python/autograph/core/ |
D | unsupported_features_checker.py | 40 if node.orelse: 46 if node.orelse:
|
/external/python/asn1crypto/tests/ |
D | test_init.py | 76 for subast in node.orelse: 82 for subast in node.orelse: 96 for subast in node.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 | 144 asdl_seq *orelse; member 152 asdl_seq *orelse; member 159 asdl_seq *orelse; member 165 asdl_seq *orelse; member 188 asdl_seq *orelse; member 266 expr_ty orelse; member 504 orelse, string type_comment, int lineno, int col_offset, int 508 orelse, string type_comment, int lineno, int col_offset, 511 stmt_ty _Py_While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, 515 stmt_ty _Py_If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, [all …]
|
/external/python/cpython3/Lib/ |
D | ast.py | 953 if node.orelse: 956 self.traverse(node.orelse) 1031 if node.orelse: 1034 self.traverse(node.orelse) 1042 while node.orelse and len(node.orelse) == 1 and isinstance(node.orelse[0], If): 1043 node = node.orelse[0] 1049 if node.orelse: 1052 self.traverse(node.orelse) 1059 if node.orelse: 1062 self.traverse(node.orelse) [all …]
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | cfg.py | 834 for stmt in node.orelse: 857 for stmt in node.orelse: 888 for stmt in node.orelse: 926 if node.orelse: 927 block_representative = node.orelse[0] 930 for stmt in node.orelse:
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 202 PyObject *orelse; member 447 Py_CLEAR(state->orelse); in _PyAST_Fini() 531 if ((state->orelse = PyUnicode_InternFromString("orelse")) == NULL) return 0; in init_identifiers() 2192 For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, string in For() argument 2214 p->v.For.orelse = orelse; in For() 2224 AsyncFor(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, in AsyncFor() argument 2246 p->v.AsyncFor.orelse = orelse; in AsyncFor() 2256 While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in While() argument 2271 p->v.While.orelse = orelse; in While() 2280 If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in If() argument [all …]
|
D | ast.c | 241 validate_expr(exp->v.IfExp.orelse, Load); in validate_expr() 390 validate_stmts(stmt->v.For.orelse); in validate_stmt() 395 validate_stmts(stmt->v.AsyncFor.orelse); in validate_stmt() 399 validate_stmts(stmt->v.While.orelse); in validate_stmt() 403 validate_stmts(stmt->v.If.orelse); in validate_stmt() 443 asdl_seq_LEN(stmt->v.Try.orelse)) { in validate_stmt() 456 (!asdl_seq_LEN(stmt->v.Try.orelse) || in validate_stmt() 457 validate_stmts(stmt->v.Try.orelse)); in validate_stmt() 1926 expr_ty expression, body, orelse; in ast_for_ifexpr() local 1935 orelse = ast_for_expr(c, CHILD(n, 4)); in ast_for_ifexpr() [all …]
|
D | compile.c | 1575 find_ann(st->v.For.orelse); in find_ann() 1579 find_ann(st->v.AsyncFor.orelse); in find_ann() 1583 find_ann(st->v.While.orelse); in find_ann() 1587 find_ann(st->v.If.orelse); in find_ann() 1605 find_ann(st->v.Try.orelse); in find_ann() 2565 if (!compiler_jump_if(c, e->v.IfExp.orelse, next, cond)) in compiler_jump_if() 2635 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp() 2715 if (s->v.If.orelse) { in compiler_if() 2716 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if() 2720 if (s->v.If.orelse) { in compiler_if() [all …]
|
D | ast_opt.c | 490 CALL(astfold_expr, expr_ty, node_->v.IfExp.orelse); in astfold_expr() 668 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.For.orelse); in astfold_stmt() 676 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.AsyncFor.orelse); in astfold_stmt() 681 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.While.orelse); in astfold_stmt() 686 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.If.orelse); in astfold_stmt() 703 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.Try.orelse); in astfold_stmt()
|
/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/python/cpython3/Doc/library/ |
D | ast.rst | 515 .. class:: IfExp(test, body, orelse) 527 orelse=Name(id='c', ctx=Load()))) 984 .. class:: If(test, body, orelse) 987 node. ``body`` and ``orelse`` each hold a list of nodes. 990 appear as extra :class:`If` nodes within the ``orelse`` section of the 1010 orelse=[ 1016 orelse=[ 1022 .. class:: For(target, iter, body, orelse, type_comment) 1026 the item to be looped over, again as a single node. ``body`` and ``orelse`` 1027 contain lists of nodes to execute. Those in ``orelse`` are executed if the [all …]
|