Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: Add skeleton for OfflineAudioContext #24125

Merged
merged 5 commits into from
Apr 27, 2024

Conversation

shannonbooth
Copy link
Member

Add a skeleton for OfflineAudioContext to get the boilerplate out of the way.

Work towards #22902 and by extension #23632

Also includes some enum related work in IDL generator as I was investigating how to fix the codegen for an enum with a default value (seen in the IDL definition for OfflineAudioContext).

Implement enough to construct the object itself, with most parts stubbed
out.
Instead of a cryptic error that occurs due to an interface with no name,
fail early on by explicitly checking that an interface was parsed with a
name.
We should never hit this case - so don't generate code for it, and
instead put in a VERIFY_NOT_REACHED.

Also improve the formatting of the generated code to closer match the
serenity code style.
The prototype header generation was getting a bit long.

This is also a step towards generating code for IDL files only
containing an enum definition without any interface. In that case we
can't put the enum definitions alongside the prototype - there is no
prototype to speak of.
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Apr 26, 2024
@awesomekling awesomekling merged commit de2cad0 into SerenityOS:master Apr 27, 2024
12 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants