summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Completion.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-01-08 19:23:00 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-09 23:00:24 +0000
commitf3db548a3d068c051c4d6eba970b89422a6b9522 (patch)
treedf8846e5699175b425ca8d07b7b6350c0a04dcf7 /Userland/Libraries/LibJS/Runtime/Completion.h
parent2eacc7aec1b2b1cc5a491727baa75817ca819bc5 (diff)
downloadserenity-f3db548a3d068c051c4d6eba970b89422a6b9522.zip
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.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Completion.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Completion.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Completion.h b/Userland/Libraries/LibJS/Runtime/Completion.h
index 0203b642f6..d1f226e647 100644
--- a/Userland/Libraries/LibJS/Runtime/Completion.h
+++ b/Userland/Libraries/LibJS/Runtime/Completion.h
@@ -7,7 +7,7 @@
#pragma once
-#include <AK/FlyString.h>
+#include <AK/DeprecatedFlyString.h>
#include <AK/Optional.h>
#include <AK/Try.h>
#include <AK/Variant.h>
@@ -40,7 +40,7 @@ public:
Throw,
};
- ALWAYS_INLINE Completion(Type type, Optional<Value> value, Optional<FlyString> target)
+ ALWAYS_INLINE Completion(Type type, Optional<Value> value, Optional<DeprecatedFlyString> target)
: m_type(type)
, m_value(move(value))
, m_target(move(target))
@@ -81,8 +81,8 @@ public:
}
[[nodiscard]] Optional<Value>& value() { return m_value; }
[[nodiscard]] Optional<Value> const& value() const { return m_value; }
- [[nodiscard]] Optional<FlyString>& target() { return m_target; }
- [[nodiscard]] Optional<FlyString> const& target() const { return m_target; }
+ [[nodiscard]] Optional<DeprecatedFlyString>& target() { return m_target; }
+ [[nodiscard]] Optional<DeprecatedFlyString> const& target() const { return m_target; }
// "abrupt completion refers to any completion with a [[Type]] value other than normal"
[[nodiscard]] bool is_abrupt() const { return m_type != Type::Normal; }
@@ -127,9 +127,9 @@ private:
return m_type == Type::Empty;
}
- Type m_type { Type::Normal }; // [[Type]]
- Optional<Value> m_value; // [[Value]]
- Optional<FlyString> m_target; // [[Target]]
+ Type m_type { Type::Normal }; // [[Type]]
+ Optional<Value> m_value; // [[Value]]
+ Optional<DeprecatedFlyString> m_target; // [[Target]]
};
}