* @param thing *
(thing)
| 70 | * @param thing |
| 71 | * */ |
| 72 | function walkInterface(thing) { |
| 73 | thing.members.forEach(member => { |
| 74 | switch (member.type) { |
| 75 | case 'constructor': |
| 76 | storeMethod('Window', thing.name, member.arguments.map(argName)); |
| 77 | break; |
| 78 | case 'operation': |
| 79 | handleOperation(member); |
| 80 | } |
| 81 | }); |
| 82 | const namedConstructor = thing.extAttrs.find(extAttr => extAttr.name === 'NamedConstructor'); |
| 83 | if (namedConstructor && namedConstructor.arguments) { |
| 84 | storeMethod('Window', namedConstructor.rhs.value, namedConstructor.arguments.map(argName)); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * @param thing |
no test coverage detected