Change location of ObjectTypeIndexer to match flow (#228)

This commit is contained in:
Daniel Tschinder
2017-01-27 23:08:20 +01:00
committed by GitHub
parent c424156751
commit e614032504
3 changed files with 12 additions and 9 deletions

View File

@@ -282,8 +282,11 @@ pp.flowParseObjectTypeIndexer = function (node, isStatic, variance) {
node.value = this.flowParseTypeInitialiser();
node.variance = variance;
// Finish node first to not include a possible semicolon in the locations
const indexer = this.finishNode(node, "ObjectTypeIndexer");
this.flowObjectTypeSemicolon();
return this.finishNode(node, "ObjectTypeIndexer");
return indexer;
};
pp.flowParseObjectTypeMethodish = function (node) {