angular/packages/compiler-cli/src/ngtsc
Kristiyan Kostadinov 51ac883167 fix(compiler-cli): don't type check the bodies of control flow nodes in basic mode (#55558)
Angular only checks the contents of template nodes in full type checking mode. After v17, the new control flow always had its body checked, even in basic mode, which started revealing compilation errors for apps that were using the schematic to automatically switch to the new syntax.

These changes mimic the old behavior by not checking the bodies of `if`, `switch` and `for` blocks in basic mode. Note that the expressions of the blocks are still going to be checked.

Fixes #52969.

PR Close #55558
2024-04-26 09:33:39 -07:00
..
annotations refactor(compiler-cli): improve error message for uncaught FatalDiagnosticError (#55070) 2024-03-28 09:13:09 -07:00
core fix(compiler-cli): don't type check the bodies of control flow nodes in basic mode (#55558) 2024-04-26 09:33:39 -07:00
cycles build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
diagnostics refactor(compiler-cli): improve error message for uncaught FatalDiagnosticError (#55070) 2024-03-28 09:13:09 -07:00
docs refactor(compiler-cli): support ignoring specific doc entries during extraction (#55053) 2024-03-28 09:38:43 -07:00
entry_point build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
file_system test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
imports refactor(compiler-cli): introduce new implementation of ImportManager (#54983) 2024-03-27 10:18:29 -07:00
incremental docs(core): fix the language code (#52352) 2023-10-25 09:32:17 -07:00
indexer refactor(compiler-cli): expose ng-content selectors and preserveWhitespaces during template type checking (#53190) 2023-11-28 11:18:43 +01:00
logging build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
metadata test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
partial_evaluator fix(compiler): handle ambient types in input transform function (#51474) 2023-12-13 09:15:17 -08:00
perf feat(language-service): Implement outlining spans for control flow blocks (#52062) 2023-10-09 10:20:26 -07:00
program_driver fix(compiler): allow TS jsDocParsingMode host option to be programmatically set again (#53292) 2023-12-01 10:35:07 -08:00
reflection refactor(compiler-cli): reflection should inspect ES private fields and visibility (#55070) 2024-03-28 09:13:06 -07:00
resource refactor: update code to be ES2022 compliant (#49559) 2023-03-23 08:18:45 -07:00
scope refactor(compiler): add support for internal deferredImports field (#53591) 2024-01-10 15:28:58 -08:00
shims feat(compiler): drop support for TypeScript 4.8 (#49155) 2023-02-23 10:39:43 -08:00
sourcemaps build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
testing refactor(compiler-cli): speed up compiler tests by caching Angular (#54650) 2024-03-06 12:34:39 +01:00
transform refactor(compiler-cli): properly preserve file overview comments (#54983) 2024-03-27 10:18:30 -07:00
translator refactor(compiler-cli): move config initialization into constructor (#54975) 2024-04-11 11:20:18 +02:00
typecheck fix(compiler-cli): don't type check the bodies of control flow nodes in basic mode (#55558) 2024-04-26 09:33:39 -07:00
util refactor(compiler): drop regular imports when symbols can be defer-loaded (#51171) 2023-08-04 11:28:07 -04:00
xi18n refactor(compiler-cli): support xi18n in ngtsc (#42485) 2021-06-21 16:50:28 +00:00
program.ts feat(compiler): extract docs via exports (#51828) 2023-09-20 18:34:55 +02:00
tsc_plugin.ts refactor(compiler-cli): Export the interface PluginCompilerHost for 1p use. (#48874) 2023-02-02 09:44:18 -08:00