angular/packages/compiler-cli
Andrew Scott c2f4b2af7c refactor(compiler-cli): decouple SymbolReference from AST nodes in template checker
To support the need to resolve symbols without full AST access (e.g. when using virtual files), this commit decouples `ReferenceSymbol` from `ts.ClassDeclaration`.

Changes:
- Updated `ReferenceSymbol.target` to use `SymbolReference` instead of `ts.ClassDeclaration`.
- Removed `getReferenceTargetNode()` from `SymbolDirectiveMeta` and transitioned to `getSymbolReference()`.
- Refactored `getTsSymbolOfReference` in `checker.ts` to handle `SymbolReference` and resolve it to a `ts.Symbol` using a position-optimized AST traversal. This avoids using the private `getTokenAtPosition` API and avoids full file scans by only traversing nodes containing the target position.
2026-04-14 12:32:48 +03:00
..
linker feat(core): Set default Component changeDetection strategy to OnPush 2026-03-24 16:25:02 -07:00
private refactor(compiler-cli): fix typo 2026-04-13 11:05:16 +03:00
src refactor(compiler-cli): decouple SymbolReference from AST nodes in template checker 2026-04-14 12:32:48 +03:00
test fix(compiler-cli): animation events not type checked properly when bound through HostListener decorator 2026-04-13 11:05:16 +03:00
BUILD.bazel refactor: remove all deep imports in language service 2026-04-13 11:16:26 +03:00
esbuild.config.js build: use esbuild from aspect rules (#62568) 2025-07-10 13:45:15 -07:00
index.ts refactor: remove all deep imports in language service 2026-04-13 11:16:26 +03:00
package.json feat(core): drop support for TypeScript 5.9 2026-04-03 09:44:11 -07:00
tsconfig-test.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
tsconfig.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00