aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_compile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_compile.h')
-rw-r--r--Include/internal/pycore_compile.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h
index a606c2afe0a..c18e04bf67a 100644
--- a/Include/internal/pycore_compile.h
+++ b/Include/internal/pycore_compile.h
@@ -34,8 +34,8 @@ PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(
int optimize,
struct _arena *arena);
-/* AST optimizations */
-extern int _PyCompile_AstOptimize(
+/* AST preprocessing */
+extern int _PyCompile_AstPreprocess(
struct _mod *mod,
PyObject *filename,
PyCompilerFlags *flags,
@@ -43,7 +43,7 @@ extern int _PyCompile_AstOptimize(
struct _arena *arena,
int syntax_check_only);
-extern int _PyAST_Optimize(
+extern int _PyAST_Preprocess(
struct _mod *,
struct _arena *arena,
PyObject *filename,
@@ -95,6 +95,7 @@ typedef enum {
enum _PyCompile_FBlockType {
COMPILE_FBLOCK_WHILE_LOOP,
COMPILE_FBLOCK_FOR_LOOP,
+ COMPILE_FBLOCK_ASYNC_FOR_LOOP,
COMPILE_FBLOCK_TRY_EXCEPT,
COMPILE_FBLOCK_FINALLY_TRY,
COMPILE_FBLOCK_FINALLY_END,