mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibJS: Capture source text of FunctionNode and ClassExpression
This commit is contained in:
parent
95a9f12b97
commit
531d1ac734
3 changed files with 46 additions and 20 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
NonnullRefPtr<Program> parse_program(bool starts_in_strict_mode = false);
|
||||
|
||||
template<typename FunctionNodeType>
|
||||
NonnullRefPtr<FunctionNodeType> parse_function_node(u8 parse_options = FunctionNodeParseOptions::CheckForFunctionAndName);
|
||||
NonnullRefPtr<FunctionNodeType> parse_function_node(u8 parse_options = FunctionNodeParseOptions::CheckForFunctionAndName, Optional<Position> const& function_start = {});
|
||||
Vector<FunctionNode::Parameter> parse_formal_parameters(int& function_length, u8 parse_options = 0);
|
||||
|
||||
enum class AllowDuplicates {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue