Searched refs:compiler_error (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Python/ |
D | compile.c | 174 static int compiler_error(struct compiler *, const char *); 2371 return compiler_error(c, "'async for' outside async function"); in compiler_async_for() 2505 return compiler_error(c, LOOP_ERROR_MSG); in compiler_continue() 2517 return compiler_error(c, IN_FINALLY_ERROR_MSG); in compiler_continue() 2520 return compiler_error(c, LOOP_ERROR_MSG); in compiler_continue() 2524 return compiler_error(c, IN_FINALLY_ERROR_MSG); in compiler_continue() 2654 return compiler_error(c, "default 'except:' must be last"); in compiler_try_except() 2872 return compiler_error(c, "from __future__ imports must occur " in compiler_from_import() 2986 return compiler_error(c, "'return' outside function"); in compiler_visit_stmt() 2989 return compiler_error( in compiler_visit_stmt() [all …]
|
/external/python/cpython2/Python/ |
D | compile.c | 158 static int compiler_error(struct compiler *, const char *); 1706 return compiler_error(c, LOOP_ERROR_MSG); in compiler_continue() 1718 return compiler_error(c, IN_FINALLY_ERROR_MSG); in compiler_continue() 1721 return compiler_error(c, LOOP_ERROR_MSG); in compiler_continue() 1725 return compiler_error(c, IN_FINALLY_ERROR_MSG); in compiler_continue() 1849 return compiler_error(c, "default 'except:' must be last"); in compiler_try_except() 2003 return compiler_error(c, "from __future__ imports must occur " in compiler_from_import() 2090 return compiler_error(c, "'return' outside function"); in compiler_visit_stmt() 2179 return compiler_error(c, "'break' outside loop"); in compiler_visit_stmt() 3011 return compiler_error(c, "'yield' outside function"); in compiler_visit_expr() [all …]
|