Skip to content

Commit 60ad42d

Browse files
committed
PR feedback
1 parent 0666dc5 commit 60ad42d

File tree

1 file changed

+7
-2
lines changed
  • apps/api-extractor/src/analyzer

1 file changed

+7
-2
lines changed

apps/api-extractor/src/analyzer/Span.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,15 @@ export class SpanModification {
8080
public sortKey: string | undefined;
8181

8282
/**
83-
* If true, then getModifiedText() will search for a "/*" doc comment in this span and indent it.
83+
* Optionally configures getModifiedText() to search for a "/*" doc comment and indent it.
84+
* At most one comment is detected.
8485
*
8586
* @remarks
86-
* This feature is selectively enabled because (1) we do not want to accidentally match `/*` appearing
87+
* The indentation can be applied to the `Span.modifier.prefix` only, or it can be applied to the
88+
* full subtree of nodes (as needed for `ts.SyntaxKind.JSDocComment` trees). However the enabled
89+
* scopes must not overlap.
90+
*
91+
* This feature is enabled selectively because (1) we do not want to accidentally match `/*` appearing
8792
* in a string literal or other expression that is not a comment, and (2) parsing comments is relatively
8893
* expensive.
8994
*/

0 commit comments

Comments
 (0)