mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix refactoring mistake
This commit is contained in:
@@ -445,7 +445,7 @@ namespace ts.formatting {
|
||||
undefined;
|
||||
|
||||
if (tokenInfo) {
|
||||
const parent = findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode) || previousParent!;
|
||||
const parent = findPrecedingToken(tokenInfo.end, sourceFile, enclosingNode)?.parent || previousParent!;
|
||||
processPair(
|
||||
tokenInfo,
|
||||
sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
/// <reference path="../fourslash.ts"/>
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
//// if (foo) {
|
||||
//// if (bar) {/**/}
|
||||
Reference in New Issue
Block a user