angular/packages/compiler-cli/src
Kristiyan Kostadinov f5c566c079 fix(compiler-cli): identify aliased initializer functions (#54609)
Fixes that initializer functions weren't being recognized if they are aliased (e.g. `import {model as alias} from '@angular/core';`).

To do this efficiently, I had to introduce the `ImportedSymbolsTracker` which scans the top-level imports of a file and allows them to be checked quickly, without having to go through the type checker. It will be useful in the future when verifying that that initializer APIs aren't used in unexpected places.

I've also introduced tests specifically for the `tryParseInitializerApiMember` function so that we can test it in isolation instead of going through the various functions that call into it.

PR Close #54609
2024-02-26 18:27:15 -08:00
..
bin refactor(compiler-cli): drop tsickle code paths (#50602) 2023-08-17 10:23:49 -07:00
ngtsc fix(compiler-cli): identify aliased initializer functions (#54609) 2024-02-26 18:27:15 -08:00
transformers fix(compiler-cli): identify aliased initializer functions (#54609) 2024-02-26 18:27:15 -08:00
extract_i18n.ts refactor(compiler-cli): remove dependency on minimist (#43644) 2021-10-04 17:31:03 -07:00
main.ts refactor(compiler-cli): drop tsickle code paths (#50602) 2023-08-17 10:23:49 -07:00
perform_compile.ts refactor(compiler): clean up compatibility code for old TS versions (#52099) 2023-10-10 09:37:38 -07:00
perform_watch.ts refactor(compiler-cli): update emit signature to support for strongly typed emitCallback (#47893) 2022-11-01 04:44:28 -07:00
typescript_support.ts feat(core): support TypeScript 5.3 (#52572) 2023-11-09 22:56:41 +00:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00
version_helpers.ts refactor(compiler-cli): move version number helpers out of diagnostics subfolder (#44269) 2021-12-01 10:36:30 -08:00