mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
LibJS: Rename Symbol::to_deprecated_string() to descriptive_string()
This implements the spec's SymbolDescriptiveString AO and should be named accordingly.
This commit is contained in:
parent
ac440e6c0e
commit
89700a2101
7 changed files with 22 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -24,7 +24,8 @@ public:
|
|||
DeprecatedString description() const { return m_description.value_or(""); }
|
||||
Optional<DeprecatedString> const& raw_description() const { return m_description; }
|
||||
bool is_global() const { return m_is_global; }
|
||||
DeprecatedString to_deprecated_string() const { return DeprecatedString::formatted("Symbol({})", description()); }
|
||||
|
||||
DeprecatedString descriptive_string() const;
|
||||
|
||||
private:
|
||||
Symbol(Optional<DeprecatedString>, bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue