mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -17,10 +17,10 @@ namespace IDL {
|
|||
|
||||
class Parser {
|
||||
public:
|
||||
Parser(DeprecatedString filename, StringView contents, DeprecatedString import_base_path);
|
||||
Parser(ByteString filename, StringView contents, ByteString import_base_path);
|
||||
Interface& parse();
|
||||
|
||||
Vector<DeprecatedString> imported_files() const;
|
||||
Vector<ByteString> imported_files() const;
|
||||
|
||||
private:
|
||||
// https://webidl.spec.whatwg.org/#dfn-special-operation
|
||||
|
@ -30,43 +30,43 @@ private:
|
|||
Yes,
|
||||
};
|
||||
|
||||
Parser(Parser* parent, DeprecatedString filename, StringView contents, DeprecatedString import_base_path);
|
||||
Parser(Parser* parent, ByteString filename, StringView contents, ByteString import_base_path);
|
||||
|
||||
void assert_specific(char ch);
|
||||
void assert_string(StringView expected);
|
||||
void consume_whitespace();
|
||||
Optional<Interface&> resolve_import(auto path);
|
||||
|
||||
HashMap<DeprecatedString, DeprecatedString> parse_extended_attributes();
|
||||
void parse_attribute(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
HashMap<ByteString, ByteString> parse_extended_attributes();
|
||||
void parse_attribute(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_interface(Interface&);
|
||||
void parse_namespace(Interface&);
|
||||
void parse_non_interface_entities(bool allow_interface, Interface&);
|
||||
void parse_enumeration(HashMap<DeprecatedString, DeprecatedString>, Interface&);
|
||||
void parse_enumeration(HashMap<ByteString, ByteString>, Interface&);
|
||||
void parse_typedef(Interface&);
|
||||
void parse_interface_mixin(Interface&);
|
||||
void parse_dictionary(Interface&);
|
||||
void parse_callback_function(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_constructor(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_getter(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_setter(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_deleter(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_stringifier(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_callback_function(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_constructor(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_getter(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_setter(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_deleter(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_stringifier(HashMap<ByteString, ByteString>& extended_attributes, Interface&);
|
||||
void parse_iterable(Interface&);
|
||||
Function parse_function(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&, IsSpecialOperation is_special_operation = IsSpecialOperation::No);
|
||||
Function parse_function(HashMap<ByteString, ByteString>& extended_attributes, Interface&, IsSpecialOperation is_special_operation = IsSpecialOperation::No);
|
||||
Vector<Parameter> parse_parameters();
|
||||
NonnullRefPtr<Type const> parse_type();
|
||||
void parse_constant(Interface&);
|
||||
|
||||
DeprecatedString import_base_path;
|
||||
DeprecatedString filename;
|
||||
ByteString import_base_path;
|
||||
ByteString filename;
|
||||
StringView input;
|
||||
GenericLexer lexer;
|
||||
|
||||
HashTable<NonnullOwnPtr<Interface>>& top_level_interfaces();
|
||||
HashTable<NonnullOwnPtr<Interface>> interfaces;
|
||||
HashMap<DeprecatedString, Interface*>& top_level_resolved_imports();
|
||||
HashMap<DeprecatedString, Interface*> resolved_imports;
|
||||
HashMap<ByteString, Interface*>& top_level_resolved_imports();
|
||||
HashMap<ByteString, Interface*> resolved_imports;
|
||||
Parser* top_level_parser();
|
||||
Parser* parent = nullptr;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue