mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Clean up
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
-1
@@ -6,7 +6,6 @@
|
||||
|
||||
goTo.marker("");
|
||||
format.onType("", "{");
|
||||
// format.document();
|
||||
verify.currentFileContentIs(
|
||||
`if (foo) {
|
||||
if (bar) { }
|
||||
Reference in New Issue
Block a user