Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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.c1520 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp()
1623 if (s->v.If.orelse) in compiler_if()
1624 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1628 if (s->v.If.orelse) { in compiler_if()
1639 if (s->v.If.orelse) { in compiler_if()
1641 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1671 VISIT_SEQ(c, stmt, s->v.For.orelse); in compiler_for()
1679 basicblock *loop, *orelse, *end, *anchor = NULL; in compiler_while() local
1683 if (s->v.While.orelse) in compiler_while()
1684 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()
2856 asdl_seq *orelse = NULL; in ast_for_if_stmt() local
2870 orelse = asdl_seq_new(1, c->c_arena); in ast_for_if_stmt()
2871 if (!orelse) in ast_for_if_stmt()
2883 asdl_seq_SET(orelse, 0, in ast_for_if_stmt()
2905 If(expression, suite_seq, orelse, in ast_for_if_stmt()
2908 orelse = newobj; in ast_for_if_stmt()
[all …]
Dsymtable.c1070 if (s->v.For.orelse) in symtable_visit_stmt()
1071 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt()
1076 if (s->v.While.orelse) in symtable_visit_stmt()
1077 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt()
1083 if (s->v.If.orelse) in symtable_visit_stmt()
1084 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt()
1098 VISIT_SEQ(st, stmt, s->v.TryExcept.orelse); in symtable_visit_stmt()
1214 VISIT(st, expr, e->v.IfExp.orelse); in symtable_visit_expr()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
DPython-ast.c1173 For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in For() argument
1194 p->v.For.orelse = orelse; in For()
1201 While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in While() argument
1216 p->v.While.orelse = orelse; in While()
1223 If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in If() argument
1238 p->v.If.orelse = orelse; in If()
1284 TryExcept(asdl_seq * body, asdl_seq * handlers, asdl_seq * orelse, int lineno, in TryExcept() argument
1294 p->v.TryExcept.orelse = orelse; in TryExcept()
1567 IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, in IfExp() argument
1581 if (!orelse) { in IfExp()
[all …]
Dcompile.c1497 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp()
1600 if (s->v.If.orelse) in compiler_if()
1601 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1605 if (s->v.If.orelse) { in compiler_if()
1616 if (s->v.If.orelse) { in compiler_if()
1618 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1648 VISIT_SEQ(c, stmt, s->v.For.orelse); in compiler_for()
1656 basicblock *loop, *orelse, *end, *anchor = NULL; in compiler_while() local
1660 if (s->v.While.orelse) in compiler_while()
1661 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()
2839 asdl_seq *orelse = NULL; in ast_for_if_stmt() local
2853 orelse = asdl_seq_new(1, c->c_arena); in ast_for_if_stmt()
2854 if (!orelse) in ast_for_if_stmt()
2866 asdl_seq_SET(orelse, 0, in ast_for_if_stmt()
2888 If(expression, suite_seq, orelse, in ast_for_if_stmt()
2891 orelse = newobj; in ast_for_if_stmt()
[all …]
Dsymtable.c1068 if (s->v.For.orelse) in symtable_visit_stmt()
1069 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt()
1074 if (s->v.While.orelse) in symtable_visit_stmt()
1075 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt()
1081 if (s->v.If.orelse) in symtable_visit_stmt()
1082 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt()
1096 VISIT_SEQ(st, stmt, s->v.TryExcept.orelse); in symtable_visit_stmt()
1212 VISIT(st, expr, e->v.IfExp.orelse); in symtable_visit_expr()