mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:07:36 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -17,7 +17,7 @@ namespace IDL {
|
|||
|
||||
class Parser {
|
||||
public:
|
||||
Parser(String filename, StringView contents, String import_base_path);
|
||||
Parser(DeprecatedString filename, StringView contents, DeprecatedString import_base_path);
|
||||
Interface& parse();
|
||||
|
||||
private:
|
||||
|
@ -28,42 +28,42 @@ private:
|
|||
Yes,
|
||||
};
|
||||
|
||||
Parser(Parser* parent, String filename, StringView contents, String import_base_path);
|
||||
Parser(Parser* parent, DeprecatedString filename, StringView contents, DeprecatedString import_base_path);
|
||||
|
||||
void assert_specific(char ch);
|
||||
void assert_string(StringView expected);
|
||||
void consume_whitespace();
|
||||
Optional<Interface&> resolve_import(auto path);
|
||||
|
||||
HashMap<String, String> parse_extended_attributes();
|
||||
void parse_attribute(HashMap<String, String>& extended_attributes, Interface&);
|
||||
HashMap<DeprecatedString, DeprecatedString> parse_extended_attributes();
|
||||
void parse_attribute(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_interface(Interface&);
|
||||
void parse_non_interface_entities(bool allow_interface, Interface&);
|
||||
void parse_enumeration(Interface&);
|
||||
void parse_typedef(Interface&);
|
||||
void parse_interface_mixin(Interface&);
|
||||
void parse_dictionary(Interface&);
|
||||
void parse_callback_function(HashMap<String, String>& extended_attributes, Interface&);
|
||||
void parse_callback_function(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&);
|
||||
void parse_constructor(Interface&);
|
||||
void parse_getter(HashMap<String, String>& extended_attributes, Interface&);
|
||||
void parse_setter(HashMap<String, String>& extended_attributes, Interface&);
|
||||
void parse_deleter(HashMap<String, String>& extended_attributes, Interface&);
|
||||
void parse_stringifier(HashMap<String, String>& 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_iterable(Interface&);
|
||||
Function parse_function(HashMap<String, String>& extended_attributes, Interface&, IsSpecialOperation is_special_operation = IsSpecialOperation::No);
|
||||
Function parse_function(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface&, IsSpecialOperation is_special_operation = IsSpecialOperation::No);
|
||||
Vector<Parameter> parse_parameters();
|
||||
NonnullRefPtr<Type> parse_type();
|
||||
void parse_constant(Interface&);
|
||||
|
||||
String import_base_path;
|
||||
String filename;
|
||||
DeprecatedString import_base_path;
|
||||
DeprecatedString filename;
|
||||
StringView input;
|
||||
GenericLexer lexer;
|
||||
|
||||
HashTable<NonnullOwnPtr<Interface>>& top_level_interfaces();
|
||||
HashTable<NonnullOwnPtr<Interface>> interfaces;
|
||||
HashMap<String, Interface*>& top_level_resolved_imports();
|
||||
HashMap<String, Interface*> resolved_imports;
|
||||
HashMap<DeprecatedString, Interface*>& top_level_resolved_imports();
|
||||
HashMap<DeprecatedString, Interface*> resolved_imports;
|
||||
Parser* top_level_parser();
|
||||
Parser* parent = nullptr;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue