Skip to content

Commit 4c85911

Browse files
committed
-
1 parent 97e5390 commit 4c85911

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

src/build/patches.ts

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -55,47 +55,6 @@ export function parseKDL(kdlText: string) {
5555
}
5656

5757
enums[enumName] = { name, value: values };
58-
} else {
59-
// Handle interface-mixin
60-
const name = node.values?.[0]?.toString() ?? "";
61-
const iface: {
62-
events?: { event: Event[] };
63-
methods?: { method: MethodDescriptor };
64-
properties?: { property: PropertyDescriptor };
65-
} = {};
66-
67-
const events: Event[] = [];
68-
const methods: MethodDescriptor = {};
69-
const properties: PropertyDescriptor = {};
70-
71-
for (const child of node.children ?? []) {
72-
const name = child.values?.[0]?.toString() ?? "";
73-
if (child.name === "event") {
74-
events.push({
75-
name,
76-
type: child.properties?.type?.toString() ?? "",
77-
});
78-
} else if (child.name === "method") {
79-
methods[name] = {
80-
name,
81-
overrideSignatures: [
82-
child.properties?.overrideSignatures?.toString() ?? "",
83-
],
84-
};
85-
} else if (child.name === "property") {
86-
properties[name] = {
87-
name,
88-
exposed: child.properties?.exposed?.toString(),
89-
};
90-
}
91-
}
92-
93-
if (events.length) iface.events = { event: events };
94-
if (Object.keys(methods).length) iface.methods = { method: methods };
95-
if (Object.keys(properties).length)
96-
iface.properties = { property: properties };
97-
98-
interfaces[name] = iface;
9958
}
10059
}
10160

0 commit comments

Comments
 (0)