Fix addCompletionRecords

This commit is contained in:
Justin Ridgewell 2017-06-09 00:12:16 -04:00
parent 119d5c5871
commit ac33b1be27

View File

@ -26,7 +26,7 @@ export function getCompletionRecords(): Array {
} else if (this.isDoExpression() || this.isFor() || this.isWhile()) {
paths = addCompletionRecords(this.get("body"), paths);
} else if (this.isProgram() || this.isBlockStatement()) {
paths = addCompletionRecords(this.get("body"), paths.pop());
paths = addCompletionRecords(this.get("body").pop(), paths);
} else if (this.isFunction()) {
return this.get("body").getCompletionRecords();
} else if (this.isTryStatement()) {