Files
ladybird/Libraries/LibJS/FunctionParsingInsights.h
Andreas Kling 4c7a349b62 LibJS: Remove #include <AST.h> from SharedFunctionInstanceData.h
Extract FunctionParsingInsights into its own header and introduce
FunctionLocal as a standalone mirror of Identifier::Local. This
allows SharedFunctionInstanceData.h to avoid pulling in the full
AST type hierarchy, reducing transitive include bloat.

The AST.h include is kept in SharedFunctionInstanceData.cpp where
it's needed for the constructor that accesses AST node types.
2026-02-11 23:57:41 +01:00

19 lines
355 B
C++

/*
* Copyright (c) 2025, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace JS {
struct FunctionParsingInsights {
bool uses_this { false };
bool uses_this_from_environment { false };
bool contains_direct_call_to_eval { false };
bool might_need_arguments_object { false };
};
}