You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2025. It is now read-only.
Summary:
Split the main Annotator class into three pieces:
- the code that does .ts => .ts+Closure annotations,
- the code that does .ts => externs.js,
- and a superclass of the code shared by both.
The class hierarchy (where each level of indent means "subclass")
is now:
Rewriter: generic TypeScript AST rewriter
- ClosureRewriter: Rewriter that understands Closure JSDoc etc.
- Annotator: ClosureRewriter that does .ts => .ts+Closure
- ExternsWriter: ClosureRewriter that does .tx => externs
This is almost all just moving code around. The main function that
changed is Annotator.annotate, to use the new classes.
Should be no functionality change.
Reviewers: rkirov
Reviewed By: rkirov
Subscribers: typescript-eng
Differential Revision: https://reviews.angular.io/D209
0 commit comments