mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
AK+Everywhere: Rename FlyString to DeprecatedFlyString
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
This commit is contained in:
parent
2eacc7aec1
commit
f3db548a3d
316 changed files with 1177 additions and 1177 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
|
@ -15,14 +15,14 @@ namespace JS {
|
|||
|
||||
struct PrivateName {
|
||||
PrivateName() = default;
|
||||
PrivateName(u64 unique_id, FlyString description)
|
||||
PrivateName(u64 unique_id, DeprecatedFlyString description)
|
||||
: unique_id(unique_id)
|
||||
, description(move(description))
|
||||
{
|
||||
}
|
||||
|
||||
u64 unique_id { 0 };
|
||||
FlyString description;
|
||||
DeprecatedFlyString description;
|
||||
|
||||
bool operator==(PrivateName const& rhs) const;
|
||||
};
|
||||
|
@ -31,16 +31,16 @@ class PrivateEnvironment : public Cell {
|
|||
JS_CELL(PrivateEnvironment, Cell);
|
||||
|
||||
public:
|
||||
PrivateName resolve_private_identifier(FlyString const& identifier) const;
|
||||
PrivateName resolve_private_identifier(DeprecatedFlyString const& identifier) const;
|
||||
|
||||
void add_private_name(Badge<ClassExpression>, FlyString description);
|
||||
void add_private_name(Badge<ClassExpression>, DeprecatedFlyString description);
|
||||
|
||||
private:
|
||||
explicit PrivateEnvironment(PrivateEnvironment* parent);
|
||||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
auto find_private_name(FlyString const& description) const
|
||||
auto find_private_name(DeprecatedFlyString const& description) const
|
||||
{
|
||||
return m_private_names.find_if([&](PrivateName const& private_name) {
|
||||
return private_name.description == description;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue