angular/packages
Kristiyan Kostadinov fd5a04927e fix(compiler): recover invalid parenthesized expressions (#61815)
When the expression parser consumes tokens inside a parenthesized expression, it looks for valid tokens until it hits and invalid one or a closing paren. If it finds an invalid token, it reports and error and tries to recover until it finds a closing paren. The problem is that in such cases, it would produce the `ParenthesizedExpression` and continue parsing **from** from the closing paren which would then produce more errors that add noise to the output and result in an incorrect representation of the user's code. E.g. `foo((event.target as HTMLElement).value)` would be recovered to `foo((event.target)).value` instead of `foo((event.target).value)`.

These changes resolve the issue by skipping over the closing paren at the recovery point.

Fixes #61792.

PR Close #61815
2025-06-02 15:50:46 -04:00
..
animations docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
bazel build: update all non-major dependencies (#61666) 2025-05-26 11:12:51 +00:00
benchpress build: migrate benchpress to use rules_js (#61486) 2025-05-20 08:44:53 +00:00
common build: adjust bundling tests to use Angular CLI (#61566) 2025-05-29 14:39:11 -04:00
compiler fix(compiler): recover invalid parenthesized expressions (#61815) 2025-06-02 15:50:46 -04:00
compiler-cli fix(compiler): move defer trigger assertions out of parser (#61747) 2025-05-30 13:44:58 -04:00
core build: add missing symbol (#61783) 2025-05-30 13:34:45 -04:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements build: migrate packages/elements to ng_project (#61566) 2025-05-29 14:39:10 -04:00
examples docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
forms docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
language-service build: add comment explaining path maps (#61584) 2025-05-21 17:27:18 +00:00
localize build: rework benchmarks and examples in modules/ to new optimization rule (#61566) 2025-05-29 14:39:11 -04:00
misc/angular-in-memory-web-api release: bump version of in memory web api (#61731) 2025-05-28 10:53:17 -07:00
platform-browser build: adjust bundling tests to use Angular CLI (#61566) 2025-05-29 14:39:11 -04:00
platform-browser-dynamic build: rework benchmarks and examples in modules/ to new optimization rule (#61566) 2025-05-29 14:39:11 -04:00
platform-server fix(core): produce an error when incremental hydration is expected, but not configured (#61741) 2025-05-30 11:14:22 -04:00
private/testing build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00
router docs(router): Update view transition types to dev preview (#61787) 2025-06-02 12:42:19 -04:00
service-worker build: exclude esbuild metadata files from distributable packages (#61636) 2025-05-26 08:57:41 +00:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
zone.js build: rework benchmarks and examples in modules/ to new optimization rule (#61566) 2025-05-29 14:39:11 -04:00
BUILD.bazel build: use common macro to define tsconfig for service worker (#61341) 2025-05-14 10:43:25 -07:00
circular-deps-test.conf.js build: remove circular deps goldens (#60021) 2025-02-19 21:01:31 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:47 +00:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json build: migrate angular-in-memory-web-api to use rules_js (#61524) 2025-05-20 16:53:20 +00:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(compiler): remove empty empty string suffix from interpolation instructions (#60066) 2025-03-10 16:31:34 -07:00
tsconfig.json build: use es2022 lib (#61441) 2025-05-21 12:06:40 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT