@@ -55,47 +55,6 @@ export function parseKDL(kdlText: string) {
55
55
}
56
56
57
57
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 ;
99
58
}
100
59
}
101
60
0 commit comments