Revert "Remove flow"

This reverts commit 2827ff6b01.
This commit is contained in:
Amjad Masad
2016-03-03 14:49:20 -08:00
parent 5b7fa17cbe
commit 9a180797c0
6 changed files with 94 additions and 43 deletions

View File

@@ -704,7 +704,7 @@ export default function (instance) {
});
instance.extend("parseParenItem", function () {
return function (node, startLoc, startPos, forceArrow) {
return function (node, startLoc, startPos, forceArrow?) {
let canBeArrow = this.state.potentialArrowAt = startPos;
if (this.match(tt.colon)) {
let typeCastNode = this.startNodeAt(startLoc, startPos);