@kongyo2/ts-comment-scanner 1.11.1 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ import ts from "typescript";
2
+ import { type Range } from "./ranges.js";
3
+ /**
4
+ * The gap in front of an import or export declaration that an import sorter
5
+ * reads to tell whether the declaration starts a new group, which it sorts
6
+ * and merges apart from the group before it: the declaration's leading
7
+ * trivia, from the end of the token before it to its first token.
8
+ */
9
+ export interface ImportGroupGap extends Range {
10
+ /** The sorters that start a new group at the declaration after the gap. */
11
+ splits: Array<"typescript" | "dprint">;
12
+ }
13
+ /**
14
+ * The gaps the import sorters read, in document order — one for every
15
+ * declaration past the first of a run a sorter sorts, so that the same
16
+ * declarations have gaps however the comments around them change:
17
+ *
18
+ * - TypeScript's organizeImports (`groupByNewlineContiguous` in tsc 6 and in
19
+ * tsc 7's port; tsserver and VS Code, prettier-plugin-organize-imports)
20
+ * sorts the import declarations of the file, and those of each ambient
21
+ * module, across whatever stands between them, and the file's export
22
+ * declarations in the runs of exportRuns. A declaration starts a group
23
+ * when its leading trivia holds two line breaks outside comments: `\n`,
24
+ * `\r` or `\r\n`, its scanner's NewLineTrivia — U+2028 and U+2029 are
25
+ * skipped as whitespace.
26
+ * - dprint's TypeScript plugin (`module.sortImportDeclarations` and
27
+ * `sortExportDeclarations`, on by default; `get_stmt_groups`) sorts runs of
28
+ * adjacent top-level declarations of one kind, imports with specifiers or
29
+ * `export … from`s, and starts a group where a declaration starts two or
30
+ * more lines below the end of the one before it, counting line feeds alone.
31
+ * A declaration a `dprint-ignore` comment exempts ends dprint's run, and
32
+ * stays in it here, which only reads more gaps. `deno fmt`, which runs the
33
+ * plugin, keeps the order.
34
+ */
35
+ export declare function importGroupGaps(source: string, sourceFile: ts.SourceFile, comments: readonly Range[]): ImportGroupGap[];
36
+ //# sourceMappingURL=imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAuB,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,KAAK;IAC3C,2EAA2E;IAC3E,MAAM,EAAE,KAAK,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,QAAQ,EAAE,SAAS,KAAK,EAAE,GACzB,cAAc,EAAE,CA8BlB"}
@@ -0,0 +1,119 @@
1
+ import ts from "typescript";
2
+ import { firstIndexAtOrAfter } from "./ranges.js";
3
+ /**
4
+ * The gaps the import sorters read, in document order — one for every
5
+ * declaration past the first of a run a sorter sorts, so that the same
6
+ * declarations have gaps however the comments around them change:
7
+ *
8
+ * - TypeScript's organizeImports (`groupByNewlineContiguous` in tsc 6 and in
9
+ * tsc 7's port; tsserver and VS Code, prettier-plugin-organize-imports)
10
+ * sorts the import declarations of the file, and those of each ambient
11
+ * module, across whatever stands between them, and the file's export
12
+ * declarations in the runs of exportRuns. A declaration starts a group
13
+ * when its leading trivia holds two line breaks outside comments: `\n`,
14
+ * `\r` or `\r\n`, its scanner's NewLineTrivia — U+2028 and U+2029 are
15
+ * skipped as whitespace.
16
+ * - dprint's TypeScript plugin (`module.sortImportDeclarations` and
17
+ * `sortExportDeclarations`, on by default; `get_stmt_groups`) sorts runs of
18
+ * adjacent top-level declarations of one kind, imports with specifiers or
19
+ * `export … from`s, and starts a group where a declaration starts two or
20
+ * more lines below the end of the one before it, counting line feeds alone.
21
+ * A declaration a `dprint-ignore` comment exempts ends dprint's run, and
22
+ * stays in it here, which only reads more gaps. `deno fmt`, which runs the
23
+ * plugin, keeps the order.
24
+ */
25
+ export function importGroupGaps(source, sourceFile, comments) {
26
+ const readers = new Map();
27
+ const read = (declaration, sorter) => {
28
+ const sorters = readers.get(declaration) ?? new Set();
29
+ sorters.add(sorter);
30
+ readers.set(declaration, sorters);
31
+ };
32
+ for (const statements of [sourceFile.statements, ...ambientModuleBodies(sourceFile)]) {
33
+ for (const declaration of statements.filter(ts.isImportDeclaration).slice(1))
34
+ read(declaration, "typescript");
35
+ }
36
+ for (const run of exportRuns(sourceFile.statements)) {
37
+ for (const declaration of run.slice(1))
38
+ read(declaration, "typescript");
39
+ }
40
+ for (const [index, statement] of sourceFile.statements.entries()) {
41
+ const kind = dprintKind(statement);
42
+ if (index > 0 && kind !== undefined && dprintKind(sourceFile.statements[index - 1]) === kind) {
43
+ read(statement, "dprint");
44
+ }
45
+ }
46
+ return [...readers]
47
+ .sort(([a], [b]) => a.pos - b.pos)
48
+ .map(([declaration, sorters]) => {
49
+ const gap = { start: declaration.pos, end: declaration.getStart(sourceFile) };
50
+ const splits = [...sorters].filter((sorter) => sorter === "typescript"
51
+ ? newLineTrivia(source, gap, comments) >= 2
52
+ : source.slice(gap.start, gap.end).split("\n").length > 2);
53
+ return { ...gap, splits };
54
+ });
55
+ }
56
+ /**
57
+ * The statements of the ambient modules (`declare module "m" { … }`,
58
+ * `declare global { … }`) at the top of the file, whose imports
59
+ * organizeImports sorts too; it leaves their exports in one run.
60
+ */
61
+ function ambientModuleBodies(sourceFile) {
62
+ return sourceFile.statements.flatMap((statement) => ts.isModuleDeclaration(statement) &&
63
+ statement.body !== undefined &&
64
+ (ts.isStringLiteral(statement.name) || (statement.flags & ts.NodeFlags.GlobalAugmentation) !== 0)
65
+ ? [statement.body.statements]
66
+ : []);
67
+ }
68
+ /**
69
+ * The runs of top-level export declarations that tsc 6's organizeImports
70
+ * sorts (`getTopLevelExportGroups`): `export … from`s join the run across
71
+ * the statements between them, and a local `export { … }` takes the export
72
+ * declarations right after it into the run and ends it. tsc 7 also ends a run
73
+ * at any other statement, so its runs divide these and it reads no gap tsc 6
74
+ * does not.
75
+ */
76
+ function exportRuns(statements) {
77
+ const runs = [];
78
+ let run = [];
79
+ let ending = false;
80
+ for (const statement of statements) {
81
+ if (ts.isExportDeclaration(statement)) {
82
+ run.push(statement);
83
+ ending ||= statement.moduleSpecifier === undefined;
84
+ }
85
+ else if (ending) {
86
+ runs.push(run);
87
+ run = [];
88
+ ending = false;
89
+ }
90
+ }
91
+ runs.push(run);
92
+ return runs;
93
+ }
94
+ /** What dprint sorts the statement among: imports with specifiers, `export … from`s, or neither. */
95
+ function dprintKind(statement) {
96
+ if (ts.isImportDeclaration(statement)) {
97
+ const clause = statement.importClause;
98
+ const bindings = clause?.namedBindings;
99
+ const specified = clause?.name !== undefined ||
100
+ (bindings !== undefined && (ts.isNamespaceImport(bindings) || bindings.elements.length > 0));
101
+ return specified ? "imports" : undefined;
102
+ }
103
+ return ts.isExportDeclaration(statement) && statement.moduleSpecifier !== undefined ? "exports" : undefined;
104
+ }
105
+ /** The line breaks TypeScript's scanner reads as NewLineTrivia in the gap, past its (sorted) comments. */
106
+ function newLineTrivia(source, gap, comments) {
107
+ let count = 0;
108
+ let from = gap.start;
109
+ for (let index = firstIndexAtOrAfter(comments, gap.start, (comment) => comment.start); (comments[index]?.start ?? gap.end) < gap.end; index += 1) {
110
+ const comment = comments[index];
111
+ count += lineBreaks(source.slice(from, comment.start));
112
+ from = comment.end;
113
+ }
114
+ return count + lineBreaks(source.slice(from, gap.end));
115
+ }
116
+ function lineBreaks(text) {
117
+ return text.match(/\r\n?|\n/g)?.length ?? 0;
118
+ }
119
+ //# sourceMappingURL=imports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imports.js","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAc,MAAM,aAAa,CAAC;AAa9D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,eAAe,CAC7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AAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9G,CAAC;AAED,0GAA0G;AAC1G,SAAS,aAAa,CAAC,MAAc,EAAE,GAAU,EAAE,QAA0B;IAC3E,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC;IACrB,KACE,IAAI,KAAK,GAAG,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAChF,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,EAC7C,KAAK,IAAI,CAAC,EACV,CAAC;QACD,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAU,CAAC;QACzC,KAAK,IAAI,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACvD,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC;IACrB,CAAC;IACD,OAAO,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC;AAC9C,CAAC"}
package/dist/remove.d.ts CHANGED
@@ -21,13 +21,17 @@ export interface RemoveResult {
21
21
  removed: Comment[];
22
22
  /**
23
23
  * Comments kept because they are protected: directives, license headers,
24
- * comments the `keep` predicate claims, comments that make a directive
25
- * trailing rather than standalone (ast-grep's suppression), comments whose
26
- * removal would shift code under a next-line directive or
27
- * that sit between a directive and the code it reaches past them for (or
28
- * the JSX sibling it applies to), and comments whose removal would move a
29
- * position-dependent directive (prettier's first-comment pragma, Deno's
30
- * coverage file pragma, Bun's file-start marker) into effect.
24
+ * comments the `keep` predicate claims, comments whose removal would
25
+ * change what an ast-grep suppression covers (the ones in front of it on
26
+ * its row decide which node it trails), comments whose removal would shift
27
+ * code under a next-line directive or join another line to one a directive
28
+ * covers, or that sit between a directive and the code it reaches past
29
+ * them for (or the JSX sibling it applies to), comments whose removal
30
+ * would move a position-dependent directive
31
+ * (prettier's first-comment pragma, Deno's coverage file pragma, Bun's
32
+ * file-start marker) into effect, and comments whose removal would join
33
+ * two groups of imports or exports that TypeScript's organizeImports or
34
+ * dprint sorts apart, or split one.
31
35
  */
32
36
  kept: Comment[];
33
37
  /** Comments excluded from removal by the `shouldRemove` predicate. */
@@ -59,6 +63,9 @@ export interface RemoveResult {
59
63
  * go with it: no pile-up of blank lines where a comment stood between two
60
64
  * of them, and at the start or end of the file or of a block only the blank
61
65
  * lines already against that edge stay.
66
+ * - Imports and exports stay in the groups the import sorters read: where
67
+ * deleting a comment would join two groups that TypeScript's
68
+ * organizeImports or dprint sorts apart, or split one, the comment stays.
62
69
  * - A leading byte-order mark is preserved. Reported positions index into the
63
70
  * `source` string exactly as `scanComments(source)` reports them (a BOM
64
71
  * counts as its first character).
@@ -1 +1 @@
1
- {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../src/remove.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IACrC,oFAAoF;IACpF,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;CAC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