ladybird/Libraries/LibJS/LocalVariable.h
Timothy Flynn b955c9b2a9 LibJS: Port the Identifier AST (and related) nodes to UTF-16
This eliminates quite a lot of UTF-8 / UTF-16 churn.
2025-08-13 09:56:13 -04:00

26 lines
425 B
C++

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