File tree Expand file tree Collapse file tree 17 files changed +192
-439
lines changed Expand file tree Collapse file tree 17 files changed +192
-439
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,6 @@ pub const Interfaces = generate.Tuple(.{
4242 URL .Interfaces ,
4343 Iterators .Interfaces ,
4444 XMLSerializer .Interfaces ,
45- });
45+ }){} ;
4646
4747pub const UserContext = @import ("user_context.zig" ).UserContext ;
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ const std = @import("std");
2121const jsruntime = @import ("jsruntime" );
2222const Case = jsruntime .test_utils .Case ;
2323const checkCases = jsruntime .test_utils .checkCases ;
24- const generate = @import ("../generate.zig" );
2524
2625const parser = @import ("netsurf" );
2726
@@ -32,12 +31,12 @@ const ProcessingInstruction = @import("processing_instruction.zig").ProcessingIn
3231const HTMLElem = @import ("../html/elements.zig" );
3332
3433// CharacterData interfaces
35- pub const Interfaces = generate . Tuple ( .{
34+ pub const Interfaces = .{
3635 Comment ,
3736 Text .Text ,
3837 Text .Interfaces ,
3938 ProcessingInstruction ,
40- }) ;
39+ };
4140
4241// CharacterData implementation
4342pub const CharacterData = struct {
Original file line number Diff line number Diff line change 1616// You should have received a copy of the GNU Affero General Public License
1717// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818
19- const generate = @import ("../generate.zig" );
20-
2119const DOMException = @import ("exceptions.zig" ).DOMException ;
2220const EventTarget = @import ("event_target.zig" ).EventTarget ;
2321const DOMImplementation = @import ("implementation.zig" ).DOMImplementation ;
@@ -27,7 +25,7 @@ const NodeList = @import("nodelist.zig");
2725const Nod = @import ("node.zig" );
2826const MutationObserver = @import ("mutation_observer.zig" );
2927
30- pub const Interfaces = generate . Tuple ( .{
28+ pub const Interfaces = .{
3129 DOMException ,
3230 EventTarget ,
3331 DOMImplementation ,
@@ -37,4 +35,4 @@ pub const Interfaces = generate.Tuple(.{
3735 Nod .Node ,
3836 Nod .Interfaces ,
3937 MutationObserver .Interfaces ,
40- }) ;
38+ };
Original file line number Diff line number Diff line change @@ -26,15 +26,13 @@ const CallbackResult = jsruntime.CallbackResult;
2626const Case = jsruntime .test_utils .Case ;
2727const checkCases = jsruntime .test_utils .checkCases ;
2828
29- const generate = @import ("../generate.zig" );
30-
3129const NodeList = @import ("nodelist.zig" ).NodeList ;
3230
33- pub const Interfaces = generate . Tuple ( .{
31+ pub const Interfaces = .{
3432 MutationObserver ,
3533 MutationRecord ,
3634 MutationRecords ,
37- }) ;
35+ };
3836
3937const Walker = @import ("../dom/walker.zig" ).WalkerChildren ;
4038
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const HTML = @import("../html/html.zig");
4747const HTMLElem = @import ("../html/elements.zig" );
4848
4949// Node interfaces
50- pub const Interfaces = generate . Tuple ( .{
50+ pub const Interfaces = .{
5151 Attr ,
5252 CData .CharacterData ,
5353 CData .Interfaces ,
@@ -57,12 +57,10 @@ pub const Interfaces = generate.Tuple(.{
5757 DocumentFragment ,
5858 HTMLCollection ,
5959 HTMLCollectionIterator ,
60-
6160 HTML .Interfaces ,
62- });
63- const Generated = generate .Union .compile (Interfaces );
64- pub const Union = Generated ._union ;
65- pub const Tags = Generated ._enum ;
61+ };
62+
63+ pub const Union = generate .Union (Interfaces );
6664
6765// Node implementation
6866pub const Node = struct {
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ const Callback = jsruntime.Callback;
2525const CallbackResult = jsruntime .CallbackResult ;
2626const Case = jsruntime .test_utils .Case ;
2727const checkCases = jsruntime .test_utils .checkCases ;
28- const generate = @import ("../generate.zig" );
2928
3029const NodeUnion = @import ("node.zig" ).Union ;
3130const Node = @import ("node.zig" ).Node ;
@@ -36,10 +35,10 @@ const log = std.log.scoped(.nodelist);
3635
3736const DOMException = @import ("exceptions.zig" ).DOMException ;
3837
39- pub const Interfaces = generate . Tuple ( .{
38+ pub const Interfaces = .{
4039 NodeListIterator ,
4140 NodeList ,
42- }) ;
41+ };
4342
4443pub const NodeListIterator = struct {
4544 pub const mem_guarantied = true ;
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ const std = @import("std");
2121const jsruntime = @import ("jsruntime" );
2222const Case = jsruntime .test_utils .Case ;
2323const checkCases = jsruntime .test_utils .checkCases ;
24- const generate = @import ("../generate.zig" );
2524
2625const parser = @import ("netsurf" );
2726
@@ -31,9 +30,9 @@ const CDATASection = @import("cdata_section.zig").CDATASection;
3130const UserContext = @import ("../user_context.zig" ).UserContext ;
3231
3332// Text interfaces
34- pub const Interfaces = generate . Tuple ( .{
33+ pub const Interfaces = .{
3534 CDATASection ,
36- }) ;
35+ };
3736
3837pub const Text = struct {
3938 pub const Self = parser .Text ;
Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ const ProgressEvent = @import("../xhr/progress_event.zig").ProgressEvent;
3737const log = std .log .scoped (.events );
3838
3939// Event interfaces
40- pub const Interfaces = generate . Tuple ( .{
40+ pub const Interfaces = .{
4141 Event ,
4242 ProgressEvent ,
43- }) ;
44- const Generated = generate . Union . compile ( Interfaces );
45- pub const Union = Generated . _union ;
43+ };
44+
45+ pub const Union = generate . Union ( Interfaces ) ;
4646
4747// https://dom.spec.whatwg.org/#event
4848pub const Event = struct {
You can’t perform that action at this time.
0 commit comments