Home
last modified time | relevance | path

Searched refs:orelse (Results 1 – 25 of 44) sorted by relevance

12

/external/tensorflow/tensorflow/python/autograph/converters/
Dbreak_statements.py79 node.orelse = self.visit_block(node.orelse)
88 template, test=node.test, body=node.body, orelse=node.orelse)
97 guarded_orelse = self._guard_if_present(node.orelse, break_var)
110 orelse=guarded_orelse)
126 node.orelse = self.visit_block(node.orelse)
139 orelse=node.orelse)
149 guarded_orelse = self._guard_if_present(node.orelse, break_var)
170 orelse=guarded_orelse)
Dreturn_statements.py82 return node, node.orelse
99 node.orelse, _ = self._visit_statement_block(node, node.orelse)
106 node.orelse, _ = self._visit_statement_block(node, node.orelse)
121 node.orelse, _ = self._visit_statement_block(node, node.orelse)
139 node.orelse, orelse_definitely_returns = self._visit_statement_block(
140 node, node.orelse)
290 node.orelse = self._visit_statement_block(node, node.orelse)
312 node.orelse = self._visit_statement_block(node, node.orelse)
322 node.orelse = self._visit_statement_block(node, node.orelse)
334 node.orelse = self._visit_statement_block(node, node.orelse)
Dcontinue_statements.py125 node.orelse = self._visit_non_loop_body(node.orelse)
133 node.orelse = self._visit_non_loop_body(node.orelse)
138 node.orelse = self._visit_non_loop_body(node.orelse)
148 node.orelse = self._visit_non_loop_body(node.orelse)
Dlists.py214 node.orelse = self._visit_and_process_block(node.orelse)
220 node.orelse = self._visit_and_process_block(node.orelse)
226 node.orelse = self._visit_and_process_block(node.orelse)
Dconditional_expressions.py40 false_expr=node.orelse,
/external/python/cpython2/Demo/parser/
Dunparse.py192 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/cpython3/Parser/
DPython.asdl31 -- 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)
42 | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)
62 | IfExp(expr test, expr body, expr orelse)
/external/tensorflow/tensorflow/python/autograph/operators/
Dcontrol_flow_test.py1105 def orelse(): function
1117 orelse=orelse,
1135 def orelse(): function
1147 orelse=orelse,
1166 def orelse(): function
1179 orelse=orelse,
1197 def orelse(): function
1205 orelse=orelse,
1224 def orelse(): function
1233 orelse=orelse,
[all …]
Dcontrol_flow.py1316 def if_stmt(cond, body, orelse, get_state, set_state, symbol_names, nouts): argument
1361 _tf_if_stmt(cond, body, orelse, get_state, set_state, symbol_names, nouts)
1363 _py_if_stmt(cond, body, orelse)
1367 cond, body, orelse, get_state, set_state, symbol_names, nouts): argument
1398 orelse()
1414 def _py_if_stmt(cond, body, orelse): argument
1416 return body() if cond else orelse()
/external/python/cpython2/Parser/
DPython.asdl24 -- 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/
Dcodegen.py184 orelse = self.sample_node_list(
189 node = gast.If(test, body, orelse)
198 orelse = [] # not generating else statements
200 node = gast.While(test, body, orelse)
/external/python/cpython3/Include/internal/
Dpycore_ast.h245 asdl_stmt_seq *orelse; member
253 asdl_stmt_seq *orelse; member
260 asdl_stmt_seq *orelse; member
266 asdl_stmt_seq *orelse; member
294 asdl_stmt_seq *orelse; member
372 expr_ty orelse; member
663 asdl_stmt_seq * orelse, string type_comment, int lineno, int
667 asdl_stmt_seq * orelse, string type_comment, int
671 orelse, int lineno, int col_offset, int end_lineno, int
673 stmt_ty _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse,
[all …]
/external/tensorflow/tensorflow/python/autograph/core/
Dunsupported_features_checker.py36 if node.orelse:
42 if node.orelse:
/external/python/asn1crypto/tests/
Dtest_init.py76 for subast in node.orelse:
82 for subast in node.orelse:
96 for subast in node.orelse:
/external/python/cpython2/Include/
DPython-ast.h115 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/Lib/
Dast.py959 if node.orelse:
962 self.traverse(node.orelse)
1037 if node.orelse:
1040 self.traverse(node.orelse)
1048 while node.orelse and len(node.orelse) == 1 and isinstance(node.orelse[0], If):
1049 node = node.orelse[0]
1055 if node.orelse:
1058 self.traverse(node.orelse)
1065 if node.orelse:
1068 self.traverse(node.orelse)
[all …]
/external/python/cpython3/Python/
Dast.c257 validate_expr(state, exp->v.IfExp.orelse, Load); in validate_expr()
728 validate_stmts(state, stmt->v.For.orelse); in validate_stmt()
734 validate_stmts(state, stmt->v.AsyncFor.orelse); in validate_stmt()
739 validate_stmts(state, stmt->v.While.orelse); in validate_stmt()
744 validate_stmts(state, stmt->v.If.orelse); in validate_stmt()
804 asdl_seq_LEN(stmt->v.Try.orelse)) { in validate_stmt()
817 (!asdl_seq_LEN(stmt->v.Try.orelse) || in validate_stmt()
818 validate_stmts(state, stmt->v.Try.orelse)); in validate_stmt()
DPython-ast.c236 Py_CLEAR(state->orelse); in _PyAST_Fini()
335 if ((state->orelse = PyUnicode_InternFromString("orelse")) == NULL) return 0; in init_identifiers()
2165 orelse, string type_comment, int lineno, int col_offset, int in _PyAST_For() argument
2186 p->v.For.orelse = orelse; in _PyAST_For()
2197 asdl_stmt_seq * orelse, string type_comment, int lineno, int in _PyAST_AsyncFor() argument
2218 p->v.AsyncFor.orelse = orelse; in _PyAST_AsyncFor()
2228 _PyAST_While(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int in _PyAST_While() argument
2244 p->v.While.orelse = orelse; in _PyAST_While()
2253 _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int in _PyAST_If() argument
2269 p->v.If.orelse = orelse; in _PyAST_If()
[all …]
Dast_opt.c517 CALL(astfold_expr, expr_ty, node_->v.IfExp.orelse); in astfold_expr()
708 CALL_SEQ(astfold_stmt, stmt, node_->v.For.orelse); in astfold_stmt()
716 CALL_SEQ(astfold_stmt, stmt, node_->v.AsyncFor.orelse); in astfold_stmt()
721 CALL_SEQ(astfold_stmt, stmt, node_->v.While.orelse); in astfold_stmt()
726 CALL_SEQ(astfold_stmt, stmt, node_->v.If.orelse); in astfold_stmt()
743 CALL_SEQ(astfold_stmt, stmt, node_->v.Try.orelse); in astfold_stmt()
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcfg.py832 for stmt in node.orelse:
855 for stmt in node.orelse:
886 for stmt in node.orelse:
930 if node.orelse:
931 block_representative = node.orelse[0]
934 for stmt in node.orelse:
/external/python/cpython2/Python/
DPython-ast.c1190 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 …]
Dcompile.c1487 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 …]
Dast.c980 expr_ty expression, body, orelse; in ast_for_ifexpr() local
989 orelse = ast_for_expr(c, CHILD(n, 4)); in ast_for_ifexpr()
990 if (!orelse) in ast_for_ifexpr()
992 return IfExp(expression, body, orelse, LINENO(n), n->n_col_offset, in ast_for_ifexpr()
2858 asdl_seq *orelse = NULL; in ast_for_if_stmt() local
2872 orelse = asdl_seq_new(1, c->c_arena); in ast_for_if_stmt()
2873 if (!orelse) in ast_for_if_stmt()
2885 asdl_seq_SET(orelse, 0, in ast_for_if_stmt()
2907 If(expression, suite_seq, orelse, in ast_for_if_stmt()
2910 orelse = newobj; in ast_for_if_stmt()
[all …]
Dsymtable.c1076 if (s->v.For.orelse) in symtable_visit_stmt()
1077 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt()
1082 if (s->v.While.orelse) in symtable_visit_stmt()
1083 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt()
1089 if (s->v.If.orelse) in symtable_visit_stmt()
1090 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt()
1104 VISIT_SEQ(st, stmt, s->v.TryExcept.orelse); in symtable_visit_stmt()
1220 VISIT(st, expr, e->v.IfExp.orelse); in symtable_visit_expr()
/external/tensorflow/tensorflow/python/autograph/g3doc/reference/
Doperators.md224 If statement: `if cond: body else: orelse-body`.
231 * orelse: false branch (as unary thunk); same as `def body(): <b>` in `if _:
260 def orelse():
263 ag__.if_stmt(k > 1, body, orelse, get_state, set_state, ('j', 'i'), 1)

12