Fix missing parsingContext restore at return in parseDelimitedList (#48999)

This commit is contained in:
Jake Bailey authored and GitHub committed 2022-05-06 13:36:27 -07:00
1 parent 2ffe6864b1
commit 8d0393d227
11 files changed
+94

No files matched your search

+1
View File
@@ -2745,6 +2745,7 @@ namespace ts {
const startPos = scanner.getStartPos();
const result = parseListElement(kind, parseElement);
if (!result) {
parsingContext = saveParsingContext;
return undefined;
}
list.push(result as NonNullable<T>);