Skip to content

Commit

Permalink
Add bangCall parsing to lsc test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 22, 2017
1 parent 0b6c44a commit e4e4202
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
4 changes: 3 additions & 1 deletion src/plugins/safeCallExistential.js
Expand Up @@ -65,7 +65,9 @@ export default function(parser) {
if (this.hasPlugin("existentialExpression")) {
return this.parseExistential(lhs, startPos, startLoc);
} else {
this.unexpected(questionPos);
// Possibly a flow type assertion; unwind
this.state = state;
return [null, false];
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/lightscript/options.json
Expand Up @@ -3,7 +3,7 @@
"alternatives": {
"all": {
"allPlugins": true,
"excludePlugins": ["existentialExpression", "safeCallExpression", "splatComprehension", "bangCall", "flippedImports", "whiteblockOnly"]
"excludePlugins": ["existentialExpression", "flippedImports", "whiteblockOnly"]
}
}
}

This file was deleted.

0 comments on commit e4e4202

Please sign in to comment.