Implement tree-shaking for Python sources

This commit is contained in:
Justine Tunney 2021-09-05 01:20:03 -07:00
parent 81287b7ec0
commit 44c87b83ff
110 changed files with 899 additions and 1922 deletions

View file

@ -17,8 +17,11 @@
#include "third_party/python/Include/pyerrors.h"
#include "third_party/python/Include/pythonrun.h"
#include "third_party/python/Include/tupleobject.h"
#include "third_party/python/Include/yoink.h"
/* clang-format off */
PYTHON_PROVIDE("_ast");
/* File automatically generated by Parser/asdl_c.py. */
static PyTypeObject AST_type;
@ -7862,6 +7865,7 @@ failed:
static struct PyModuleDef _astmodule = {
PyModuleDef_HEAD_INIT, "_ast"
};
PyMODINIT_FUNC
PyInit__ast(void)
{
@ -8112,5 +8116,3 @@ int PyAST_Check(PyObject* obj)
return -1;
return PyObject_IsInstance(obj, (PyObject*)&AST_type);
}