Skip to content

Commit b0012e5

Browse files
committed
Doc comment
1 parent 30555f1 commit b0012e5

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/lib/converter/plugins/CommentPlugin.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,28 @@ const NEVER_RENDERED = [
4646
] as const;
4747

4848
/**
49-
* A handler that parses TypeDoc comments and attaches {@link Comment} instances to
50-
* the generated reflections.
49+
* Handles most behavior triggered by comments. `@group` and `@category` are handled by their respective plugins, but everything else is here.
50+
*
51+
* During conversion:
52+
* - Handle visibility flags (`@private`, `@protected`. `@public`)
53+
* - Handle module renames (`@module`)
54+
* - Remove excluded tags & comment discovery tags (`@module`, `@packageDocumentation`)
55+
* - Copy comments for type parameters from the parent container
56+
*
57+
* Resolve begin:
58+
* - Remove hidden reflections
59+
*
60+
* Resolve:
61+
* - Apply `@label` tag
62+
* - Copy comments on signature containers to the signature if signatures don't already have a comment
63+
* and then remove the comment on the container.
64+
* - Copy comments from signatures to parameters and type parameters (again? why?)
65+
* - Apply `@group` and `@category` tags
66+
*
67+
* Resolve end:
68+
* - Copy auto inherited comments from heritage clauses
69+
* - Handle `@inheritDoc`
70+
* - Resolve `@link` tags to point to target reflections
5171
*/
5272
@Component({ name: "comment" })
5373
export class CommentPlugin extends ConverterComponent {

0 commit comments

Comments
 (0)