Add getNextNonSpaceNonCommentCharacter to prettier.util (#14317)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-02-09 17:21:36 +08:00
1 parent b96dc57cd3
commit caf6f6c64c
5 files changed
+103 -6

No files matched your search

+7 -3
View File
@@ -585,10 +585,14 @@ function makeString(
unescapeUnnecessaryEscapes?: boolean
): string;
function getNextNonSpaceNonCommentCharacterIndex<N>(
function getNextNonSpaceNonCommentCharacter(
text: string,
node: N,
locEnd: (node: N) => number
startIndex: number
): string;
function getNextNonSpaceNonCommentCharacterIndex(
text: string,
startIndex: number
): number | false;
function isNextLineEmptyAfterIndex(text: string, index: number): boolean;