2025-05-05 15:53:19 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-08-06 12:12:58 -03:00
|
|
|
#include <AK/Utf16FlyString.h>
|
2025-05-05 15:53:19 -03:00
|
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
|
|
|
|
|
struct LocalVariable {
|
|
|
|
|
enum class DeclarationKind {
|
|
|
|
|
Var,
|
|
|
|
|
LetOrConst,
|
|
|
|
|
Function,
|
|
|
|
|
ArgumentsObject,
|
|
|
|
|
CatchClauseParameter
|
|
|
|
|
};
|
2025-08-06 12:12:58 -03:00
|
|
|
|
|
|
|
|
Utf16FlyString name;
|
2025-05-05 15:53:19 -03:00
|
|
|
DeclarationKind declaration_kind;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|