Skip to content

feat(compiler): extract docs for top level functions and consts#51713

Closed
jelbourn wants to merge 5 commits intoangular:mainfrom
jelbourn:api-gen-fns
Closed

feat(compiler): extract docs for top level functions and consts#51713
jelbourn wants to merge 5 commits intoangular:mainfrom
jelbourn:api-gen-fns

Conversation

@jelbourn
Copy link
Copy Markdown
Contributor

@jelbourn jelbourn commented Sep 8, 2023

Based on top of ##51700

Also updates extraction to ignore un-exported statements.

@jelbourn jelbourn added area: compiler Issues related to `ngc`, Angular's template compiler target: minor This PR is targeted for the next minor release labels Sep 8, 2023
@jelbourn jelbourn requested a review from atscott September 8, 2023 23:05
@ngbot ngbot bot modified the milestone: Backlog Sep 8, 2023
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Sep 9, 2023
jelbourn and others added 5 commits September 9, 2023 11:55
This commit adds a barebones skeleton for extracting information to be used for extracting info that can be used for API reference generation. Subsequent PRs will expand on this with increasingly real extraction. I started with @alxhub's angular#51615 and very slightly polished to get to this minimal commit.
Based on top of angular#51682

This expands on the skeleton previously added to extract docs info for classes, including properties, methods, and method parameters. Type information and Angular-specific info (e.g. inputs) will come in future PRs.
Based on top of angular#51685

This expands on the extraction with information for directives, including inputs and outputs. As part of this change, I've refactored the extraction code related to class and to directives into their own extractor classes to more cleanly separate extraction logic based on type of statement.
Based on top of angular#51697

Adds extraction for accessors (getters/setters), rest params, and resolved type info for everything so far. This also refactors function extraction into a new class and splits tests for common class info and directive info into separate files.
Based on top of #angular#51700

Also updates extraction to ignore un-exported statements.
jelbourn added a commit to jelbourn/angular that referenced this pull request Sep 10, 2023
Based on top of angular#51713

This commit adds docs extraction for information provided in JsDoc comments, including descriptions and Jsdoc tags.
jelbourn added a commit to jelbourn/angular that referenced this pull request Sep 15, 2023
Based on top of angular#51713

This commit adds docs extraction for information provided in JsDoc comments, including descriptions and Jsdoc tags.
pkozlowski-opensource pushed a commit that referenced this pull request Sep 18, 2023
Based on top of #51713

This commit adds docs extraction for information provided in JsDoc comments, including descriptions and Jsdoc tags.

PR Close #51733
@jelbourn
Copy link
Copy Markdown
Contributor Author

Changes merged in #51733

@jelbourn jelbourn closed this Sep 18, 2023
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: compiler Issues related to `ngc`, Angular's template compiler detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant