GMLCompiler: Sort enum_properties alphabetically and remove duplicate
This commit is contained in:
parent
3df3a85235
commit
e4c7b9817b
Notes:
sideshowbarker
2024-07-18 04:46:35 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/e4c7b9817b Pull-request: https://github.com/SerenityOS/serenity/pull/22809 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 7 additions and 8 deletions
|
@ -172,19 +172,18 @@ static ErrorOr<Optional<String>> generate_enum_initializer_for(StringView proper
|
|||
{
|
||||
// The value is the enum's type name.
|
||||
static HashMap<StringView, StringView> enum_properties = {
|
||||
{ "text_alignment"sv, "Gfx::TextAlignment"sv },
|
||||
{ "focus_policy"sv, "GUI::FocusPolicy"sv },
|
||||
{ "background_role"sv, "Gfx::ColorRole"sv },
|
||||
{ "button_style"sv, "Gfx::ButtonStyle"sv },
|
||||
{ "checkbox_position"sv, "GUI::CheckBox::CheckBoxPosition"sv },
|
||||
{ "focus_policy"sv, "GUI::FocusPolicy"sv },
|
||||
{ "font_weight"sv, "Gfx::FontWeight"sv },
|
||||
{ "foreground_role"sv, "Gfx::ColorRole"sv },
|
||||
{ "frame_style"sv, "Gfx::FrameStyle"sv },
|
||||
{ "text_wrapping"sv, "Gfx::TextWrapping"sv },
|
||||
{ "button_style"sv, "Gfx::ButtonStyle"sv },
|
||||
{ "opportunistic_resizee"sv, "GUI::Splitter::OpportunisticResizee"sv },
|
||||
{ "checkbox_position"sv, "GUI::CheckBox::CheckBoxPosition"sv },
|
||||
{ "button_style"sv, "Gfx::ButtonStyle"sv },
|
||||
{ "mode"sv, "GUI::TextEditor::Mode"sv },
|
||||
{ "font_weight"sv, "Gfx::FontWeight"sv },
|
||||
{ "opportunistic_resizee"sv, "GUI::Splitter::OpportunisticResizee"sv },
|
||||
{ "orientation"sv, "Gfx::Orientation"sv },
|
||||
{ "text_alignment"sv, "Gfx::TextAlignment"sv },
|
||||
{ "text_wrapping"sv, "Gfx::TextWrapping"sv },
|
||||
};
|
||||
|
||||
auto const& enum_type_name = enum_properties.get(property_name);
|
||||
|
|
Loading…
Add table
Reference in a new issue