Fixed syntax error

This commit is contained in:
Armando Aguirre 2020-07-09 22:15:02 -07:00
parent ef81a0d0ee
commit a534f2aa97

View File

@ -2009,7 +2009,7 @@ namespace ts {
let isCommenting = insertComment || false;
let leftMostPosition = Number.MAX_VALUE;
const lineTextStarts = new Map<number>();
const lineTextStarts = new Map<string, number>();
const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
const openComment = isJsx ? "{/*" : "//";