Fix a typo in a babylon flow plugin comment [skip ci] (#7898)

This commit is contained in:
Daniel Taveras 2018-05-09 20:29:22 -04:00 committed by Henry Zhu
parent 9dab691302
commit 70e3454d7a

View File

@ -34,6 +34,7 @@ function isEsModuleType(bodyElement: N.Node): boolean {
); );
} }
function hasTypeImportKind(node: N.Node): boolean { function hasTypeImportKind(node: N.Node): boolean {
return node.importKind === "type" || node.importKind === "typeof"; return node.importKind === "type" || node.importKind === "typeof";
} }
@ -1487,8 +1488,8 @@ export default (superClass: Class<Parser>): Class<Parser> =>
return { consequent, failed }; return { consequent, failed };
} }
// Given an expression, walks throught its arrow functions whose body is // Given an expression, walks through out its arrow functions whose body is
// an expression and throught conditional expressions. It returns every // an expression and through out conditional expressions. It returns every
// function which has been parsed with a return type but could have been // function which has been parsed with a return type but could have been
// parenthesized expressions. // parenthesized expressions.
// These functions are separated into two arrays: one containing the ones // These functions are separated into two arrays: one containing the ones