From f3db548a3d068c051c4d6eba970b89422a6b9522 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 8 Jan 2023 19:23:00 -0500 Subject: 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. --- Userland/Libraries/LibJS/Runtime/Completion.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Userland/Libraries/LibJS/Runtime/Completion.h') 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 +#include #include #include #include @@ -40,7 +40,7 @@ public: Throw, }; - ALWAYS_INLINE Completion(Type type, Optional value, Optional target) + ALWAYS_INLINE Completion(Type type, Optional value, Optional target) : m_type(type) , m_value(move(value)) , m_target(move(target)) @@ -81,8 +81,8 @@ public: } [[nodiscard]] Optional& value() { return m_value; } [[nodiscard]] Optional const& value() const { return m_value; } - [[nodiscard]] Optional& target() { return m_target; } - [[nodiscard]] Optional const& target() const { return m_target; } + [[nodiscard]] Optional& target() { return m_target; } + [[nodiscard]] Optional 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 m_value; // [[Value]] - Optional m_target; // [[Target]] + Type m_type { Type::Normal }; // [[Type]] + Optional m_value; // [[Value]] + Optional m_target; // [[Target]] }; } -- cgit v1.2.3