Remove flow

This commit is contained in:
Sam Goldman
2016-03-01 21:02:55 -08:00
parent 48e8db2247
commit d6ee428857
6 changed files with 43 additions and 94 deletions

View File

@@ -404,7 +404,7 @@ pp.parseEmptyStatement = function (node) {
};
pp.parseLabeledStatement = function (node, maybeName, expr) {
for (let label of (this.state.labels: Array<Object>)){
for (let label of this.state.labels) {
if (label.name === maybeName) {
this.raise(expr.start, `Label '${maybeName}' is already declared`);
}
@@ -438,7 +438,7 @@ pp.parseExpressionStatement = function (node, expr) {
// strict"` declarations when `allowStrict` is true (used for
// function bodies).
pp.parseBlock = function (allowDirectives?) {
pp.parseBlock = function (allowDirectives) {
let node = this.startNode();
this.expect(tt.braceL);
this.parseBlockBody(node, allowDirectives, false, tt.braceR);
@@ -860,7 +860,7 @@ pp.parseExportSpecifiersMaybe = function (node) {
}
};
pp.parseExportFrom = function (node, expect?) {
pp.parseExportFrom = function (node, expect) {
if (this.eatContextual("from")) {
node.source = this.match(tt.string) ? this.parseExprAtom() : this.unexpected();
this.checkExport(node);