mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
19 lines
355 B
C++
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 };
|
|
};
|
|
|
|
}
|