Skip to content

Commit 6029b5c

Browse files
committed
cleanup
1 parent 19e2fa6 commit 6029b5c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ namespace ts.formatting {
4444
return findFirstNonWhitespaceColumn(getStartPositionOfLine(commentStartLine, sourceFile), position, sourceFile, options);
4545
}
4646

47-
// get first character of previous line -- if it is '*', move back one more character (or stay at 0)
4847
const startPostionOfLine = getStartPositionOfLine(previousLine, sourceFile);
4948
const { column, character } = findFirstNonWhitespaceCharacterAndColumn(startPostionOfLine, position, sourceFile, options);
5049

src/services/utilities.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ namespace ts {
772772
}
773773
}
774774

775-
Debug.assert(startNode !== undefined || n.kind === SyntaxKind.SourceFile || isJSDocCommentContainingNode(n) || n.kind === SyntaxKind.JsxSelfClosingElement);
775+
Debug.assert(startNode !== undefined || n.kind === SyntaxKind.SourceFile || isJSDocCommentContainingNode(n));
776776

777777
// Here we know that none of child token nodes embrace the position,
778778
// the only known case is when position is at the end of the file.
@@ -866,7 +866,6 @@ namespace ts {
866866
return isJsxText(node) && node.containsOnlyWhiteSpaces;
867867
}
868868

869-
870869
export function isInTemplateString(sourceFile: SourceFile, position: number) {
871870
const token = getTokenAtPosition(sourceFile, position, /*includeJsDocComment*/ false);
872871
return isTemplateLiteralKind(token.kind) && position > token.getStart(sourceFile);

0 commit comments

Comments
 (0)