feat(compiler): extract directive docs info#51697
feat(compiler): extract directive docs info#51697jelbourn wants to merge 3 commits intoangular:mainfrom
Conversation
There was a problem hiding this comment.
It's somewhat unclear to me what things actually need to be protected here. It seems like just the extract and extractClassProperty methods. reference and checker aren't used at all, at least in this PR.
There was a problem hiding this comment.
My thought process was to make methods that were a "top-level" part of extracting class info protected, but keep things that were more implementation details private. In reality it doesn't really matter, since the class isn't even exported.
checker is used in the next commit to get type info. I think I will need Reference in a future change to get information about which package and/or the symbol comes from, but that is admittedly speculative based on my limited knowledge of the compiler.
1fcb335 to
79af85b
Compare
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.
79af85b to
676ea32
Compare
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#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.
|
Changes merged in #51733 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Based on top of #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.
cc @devversion