Document all the events

This commit is contained in:
Amish Shah
2016-08-20 00:15:04 +01:00
parent f8b2629b18
commit 65350348a8
26 changed files with 210 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -80,12 +80,20 @@ function firstPass() {
return cleaned;
}
const seenEvents = {};
function clean() {
const cleaned = firstPass();
for (const item of json) {
if (!item) {
continue;
}
if (item.kind === 'event') {
if (seenEvents[item.name]) {
console.log('dupe logs for', item.name);
}
seenEvents[item.name] = true;
}
if (item.kind === 'member') {
const obj = cleaned.classes[item.memberof] || cleaned.interfaces[item.memberof];
const newTypes = [];