mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Common AST formats such as TS and Babel do not use a separate node for comments, but instead attach comments to other AST nodes. Previously this was worked around in TS by creating a `NotEmittedStatement` AST node to attach the comment to. But Babel does not have this facility, so it will not be a viable approach for the linker. This commit refactors the output AST, to remove the `CommentStmt` and `JSDocCommentStmt` nodes. Instead statements have a collection of `leadingComments` that are rendered/attached to the final AST nodes when being translated or printed. PR Close #38811 |
||
|---|---|---|
| .. | ||
| api.ts | ||
| compiler_host.ts | ||
| downlevel_decorators_transform.ts | ||
| entry_points.ts | ||
| inline_resources.ts | ||
| lower_expressions.ts | ||
| metadata_cache.ts | ||
| metadata_reader.ts | ||
| node_emitter.ts | ||
| node_emitter_transform.ts | ||
| patch_alias_reference_resolution.ts | ||
| program.ts | ||
| r3_metadata_transform.ts | ||
| r3_transform.ts | ||
| util.ts | ||