1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Matthew Olsson e03e710d1b IDLGenerators: Support nullable dictionary members with default values
When wrapping dictionary members, generate_wrap_statement was called
with the pattern "auto {} = ...", where "..." was determined based on
the variable's type. However, in generate_wrap_statement, if a type is
nullable it generates an if statement, so this would end up generating
something along the lines of

    if (!retval.member.has_value()) {
    	auto wrapped_member0_value = JS::js_null();
    } else {
    	auto wrapped_member0_value = JS::Value(...);
    }

...which makes the declaration inaccessible. It now generates the same
code, but the "auto" declaration (now an explicit JS::Value declaration)
is outside of the if-statement.
2023-11-08 09:58:18 +01:00
..
BindingsGenerator IDLGenerators: Support nullable dictionary members with default values 2023-11-08 09:58:18 +01:00
CMakeLists.txt LibWeb: Generate PseudoClass metadata 2023-08-12 16:26:32 +02:00
GenerateAriaRoles.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSEasingFunctions.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSEnums.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSMathFunctions.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSMediaFeatureID.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSPropertyID.cpp LibWeb: Implement Flex and FlexStyleValue types 2023-09-28 20:33:20 +01:00
GenerateCSSPseudoClass.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSTransformFunctions.cpp LibWeb: Stop using fallible JSON API in code generators 2023-08-22 13:08:24 +02:00
GenerateCSSValueID.cpp LibWeb: Treat "revert" as a CSS-wide keyword 2023-09-25 00:46:21 +01:00
GenerateWindowOrWorkerInterfaces.cpp LibWeb: Insert WindowProperties object into Window's prototype chain 2023-09-22 19:55:59 -06:00
GeneratorUtil.h LibWeb: Make (snake/title/camel) casification functions infallible 2023-08-22 13:08:24 +02:00