Searched refs:PyCF_ONLY_AST (Results 1 - 8 of 8) sorted by relevance
/third_party/python/Include/cpython/ |
H A D | compile.h | 17 #define PyCF_ONLY_AST 0x0400 macro 22 #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \ 28 int cf_feature_version; /* minor Python version (PyCF_ONLY_AST) */
|
/third_party/python/Parser/ |
H A D | pegen.c | 738 if ((flags->cf_flags & PyCF_ONLY_AST) && flags->cf_feature_version < 7) { in compute_parser_flags() 944 int feature_version = flags && (flags->cf_flags & PyCF_ONLY_AST) ? in _PyPegen_run_parser_from_string()
|
/third_party/python/Python/ |
H A D | bltinmodule.c | 753 if (feature_version >= 0 && (flags & PyCF_ONLY_AST)) { in builtin_compile_impl() 783 if (!(flags & PyCF_ONLY_AST)) { in builtin_compile_impl() 785 "compile() mode 'func_type' requires flag PyCF_ONLY_AST"); in builtin_compile_impl() 792 if (flags & PyCF_ONLY_AST) in builtin_compile_impl() 804 if (flags & PyCF_ONLY_AST) { in builtin_compile_impl()
|
H A D | pythonrun.c | 1798 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringObject()
|
H A D | Python-ast.c | 11917 if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0) { in astmodule_exec()
|
/third_party/python/Lib/test/ |
H A D | test_compile.py | 461 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST) 469 co1 = compile('print(1)', '<string>', 'exec', _ast.PyCF_ONLY_AST) 1095 ast_tree = compile(snippet, 'test_compile.py', 'exec', _ast.PyCF_ONLY_AST)
|
H A D | test_ast.py | 326 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST) 870 b = compile('foo(1 + 1)', '<unknown>', 'exec', ast.PyCF_ONLY_AST) 2379 ast_tree = compile(code, filename, mode, flags=ast.PyCF_ONLY_AST) 2436 flags=ast.PyCF_ONLY_AST)
|
/third_party/python/Lib/ |
H A D | ast.py | 10 An abstract syntax tree can be generated by passing `ast.PyCF_ONLY_AST` as 37 Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). 40 flags = PyCF_ONLY_AST
|
Completed in 30 milliseconds