Fix Flow.

Removed `@flow` annotation from files that don't actually pass Flow check at the moment. These will be added back file by file once the files are properly converted to use Flow.

Closes #3064
This commit is contained in:
Daniel Lo Nigro
2015-11-15 21:29:59 -08:00
parent 1d34d19ce9
commit 0076204f80
84 changed files with 55 additions and 194 deletions

View File

@@ -96,7 +96,10 @@ for (var type in t.NODE_FIELDS) {
${struct.join("\n ").trim()}
}\n\n`;
lines.push(`declare function ${type[0].toLowerCase() + type.slice(1)}(${args.join(", ")}): ${NODE_PREFIX}${type};`);
// Flow chokes on super() :/
if (type !== 'Super') {
lines.push(`declare function ${type[0].toLowerCase() + type.slice(1)}(${args.join(", ")}): ${NODE_PREFIX}${type};`);
}
}
for (var i = 0; i < t.TYPES.length; i++) {