File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments