Update to TypeScript 4.5.5, fix semantic lints. (#47529)

* Update to TypeScript 4.5.5, fix semantic lints.

* Remove extra parens.

* Remove now-outdated non-null comment around #18217.
This commit is contained in:
Daniel Rosenwasser authored and GitHub committed 2022-01-20 11:33:30 -08:00
1 parent 6c8c829148
commit 04d77fe900
13 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -654,7 +654,7 @@ namespace ts {
if (text === undefined) {
const parseNode = getParseTreeNode(this);
const sourceFile = parseNode && getSourceFileOfNode(parseNode);
text = sourceFile ? getSourceTextOfNodeFromSourceFile(sourceFile, parseNode!, includeTrivia) : "";
text = sourceFile ? getSourceTextOfNodeFromSourceFile(sourceFile, parseNode, includeTrivia) : "";
map?.set(this, text);
}
return text;