LibJS: Remove C++ AST

Delete AST.cpp, AST.h, ASTDump.cpp, ScopeRecord.h, and the dead
get_builtin(MemberExpression const&) from Builtins.cpp.

Extract ImportEntry and ExportEntry into a new ModuleEntry.h,
since they are data types used by the module system, not AST
node types.

Inline ModuleRequest's sorting constructor and
SourceRange::filename().

Remove the dead annex_b_function_declarations field from
EvalDeclarationData, which was only populated by the C++ parser.
This commit is contained in:
Andreas Kling
2026-03-19 13:37:46 -05:00
committed by Andreas Kling
parent 169452f41b
commit 8ec7e7c07c
Notes: github-actions[bot] 2026-03-20 02:56:47 +00:00
15 changed files with 112 additions and 3917 deletions

View File

@@ -10,6 +10,7 @@
#include <LibJS/CyclicModule.h>
#include <LibJS/Export.h>
#include <LibJS/Forward.h>
#include <LibJS/ModuleEntry.h>
#include <LibJS/Runtime/ExecutionContext.h>
namespace JS {