mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00

This is required for upcoming change where we want to emit ThrowIfTDZ for assignment expressions only for lexical declarations.
25 lines
414 B
C++
25 lines
414 B
C++
/*
|
|
* Copyright (c) 2025, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/FlyString.h>
|
|
|
|
namespace JS {
|
|
|
|
struct LocalVariable {
|
|
FlyString name;
|
|
enum class DeclarationKind {
|
|
Var,
|
|
LetOrConst,
|
|
Function,
|
|
ArgumentsObject,
|
|
CatchClauseParameter
|
|
};
|
|
DeclarationKind declaration_kind;
|
|
};
|
|
|
|
}
|