This commit is contained in:
Andrew Branch
2022-03-28 10:53:33 -07:00
parent 91631435ca
commit 79b600aaa3
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -1259,7 +1259,7 @@ namespace ts {
export function findPrecedingToken(position: number, sourceFile: SourceFileLike, startNode: Node, excludeJsdoc?: boolean): Node | undefined;
export function findPrecedingToken(position: number, sourceFile: SourceFile, startNode?: Node, excludeJsdoc?: boolean): Node | undefined;
export function findPrecedingToken(position: number, sourceFile: SourceFileLike, startNode?: Node, excludeJsdoc?: boolean): Node | undefined {
const result = find(startNode! || sourceFile);
const result = find((startNode || sourceFile) as Node);
Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));
return result;
@@ -6,7 +6,6 @@
goTo.marker("");
format.onType("", "{");
// format.document();
verify.currentFileContentIs(
`if (foo) {
if (bar) { }