angular/packages
Kristiyan Kostadinov 79b91593c9 fix(compiler): incorrect spans for AST inside input value with leading space (#63082)
When parsing expressions inside a bound attribute, we offset all of its spans by an `absoluteOffset` in order to get the right spans in the source file. The offset was incorrect when parsing an attribute with leading spaces during the construction of the Ivy AST, because of the combination of:
1. We were setting the offset by looking at `valueSpan.start`.
2. The Ivy parser sets `leadingTriviaChars: [' ', '\n']` which means that spaces and new lines will be ignored in the `sourceSpan.start`.

These changes resolve the issue by using `valueSpan.fullStart` which includes the leading spaces.

Fixes #63069.

PR Close #63082
2025-08-11 11:57:08 -07:00
..
animations refactor(animations): optimize resolveTimeExpression (#62927) 2025-08-06 15:09:18 +02:00
benchpress build: migrate all npm packages to use new rules_js based npm_package rule (#62954) 2025-08-05 19:08:45 +00:00
common build: explicitly include types for locales in @angular/common/locales (#63030) 2025-08-06 11:44:33 -07:00
compiler fix(compiler): incorrect spans for AST inside input value with leading space (#63082) 2025-08-11 11:57:08 -07:00
compiler-cli build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:34 -07:00
core build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:34 -07:00
docs/di
elements build: migrate all npm packages to use new rules_js based npm_package rule (#62954) 2025-08-05 19:08:45 +00:00
examples build: use pnpm as the package manager instead of yarn (#62924) 2025-07-31 22:06:27 +00:00
forms feat(forms): add support for pushing an array of controls to formarray (#57102) 2025-08-06 11:20:18 +02:00
language-service build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:34 -07:00
localize build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:34 -07:00
misc/angular-in-memory-web-api build: migrate all npm packages to use new rules_js based npm_package rule (#62954) 2025-08-05 19:08:45 +00:00
platform-browser feat(platform-browser): Add IsolatedShadowDom encapsulation method (#62723) 2025-08-06 16:48:37 +02:00
platform-browser-dynamic build: migrate all npm packages to use new rules_js based npm_package rule (#62954) 2025-08-05 19:08:45 +00:00
platform-server build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:34 -07:00
private/testing build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
router fix(router): attempt to resolve component resources in JIT mode (#63062) 2025-08-08 14:18:21 -07:00
service-worker feat(service-worker): Logs unhandled promise rejections in service worker (#63059) 2025-08-08 11:07:19 -07:00
ssr/docs build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
upgrade build: migrate all npm packages to use new rules_js based npm_package rule (#62954) 2025-08-05 19:08:45 +00:00
zone.js refactor(zone.js): Add internal implementation for auto ticking fakeAsync (#62135) 2025-08-08 08:39:24 -07:00
BUILD.bazel build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00: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 to using new jasmine_test (#62131) 2025-06-19 10:06:27 +02:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig.json refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -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