mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
Add generate function for Tuple
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ pub const HTMLElement = struct {
|
||||
}
|
||||
};
|
||||
|
||||
const HTMLElementsTypes = .{
|
||||
pub const HTMLElementsTypes = .{
|
||||
HTMLUnknownElement,
|
||||
HTMLAnchorElement,
|
||||
HTMLAreaElement,
|
||||
@@ -78,10 +78,7 @@ const HTMLElementsTypes = .{
|
||||
HTMLUListElement,
|
||||
HTMLVideoElement,
|
||||
};
|
||||
fn generateElements() generate.Union {
|
||||
return generate.Union.compile(HTMLElementsTypes);
|
||||
}
|
||||
const HTMLElementsGenerated = generateElements();
|
||||
const HTMLElementsGenerated = generate.Union.compile(HTMLElementsTypes);
|
||||
pub const HTMLElements = HTMLElementsGenerated._union;
|
||||
pub const HTMLElementsTags = HTMLElementsGenerated._enum;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user