1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators
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
..
GMLCompiler GMLCompiler: Add enum initializer for button_style property 2023-10-24 21:47:18 +02:00
IPCCompiler AK+Everywhere: Remove the null state of DeprecatedString 2023-10-13 18:33:21 +03:30
JSSpecCompiler JSSpecCompiler: Provide an adequate command line interface 2023-10-26 15:45:31 -06:00
LibEDID LibEDID: Replace the HTML-based PNP ID parser with a CSV-based parser 2023-11-08 08:19:04 +01:00
LibGL AK: Make SourceGenerator::fork() infallible 2023-08-22 13:08:24 +02:00
LibLocale LibLocale: Parse day-period hour cycle preferences 2023-10-05 17:01:02 +02:00
LibTimeZone LibTimeZone+Userland: Include Link entries when returning all time zones 2023-10-05 17:01:02 +02:00
LibUnicode LibUnicode: Update to Unicode version 15.1.0 2023-09-15 18:30:26 +02:00
LibWeb IDLGenerators: Support nullable dictionary members with default values 2023-11-08 09:58:18 +01:00
LibWebView LibWebView: Add an API to query if a host is on the Public Suffix List 2023-10-26 11:06:49 +02:00
StateMachineGenerator AK: Make SourceGenerator::fork() infallible 2023-08-22 13:08:24 +02:00
CMakeLists.txt LibWebView+LibPublicSuffix: Merge LibPublicSuffix into LibWebView 2023-10-16 09:06:02 -04:00