Skip to content

Comments

[compiler] Track locations for dependencies#35794

Merged
josephsavona merged 1 commit intomainfrom
pr35794
Feb 17, 2026
Merged

[compiler] Track locations for dependencies#35794
josephsavona merged 1 commit intomainfrom
pr35794

Conversation

@josephsavona
Copy link
Member

Tracks locations for reactive scope dependencies, both on the deps and portions of the path. The immediate need for this is a non-public experiment where we're exploring type-directed compilation, and sometimes look up the types of expressions by location. We need to preserve locations accurately for that to work, including the locations of the deps.

Test Plan

Locations for dependencies are not easy to test: i manually spot-checked the new fixture to ensure that the deps look right. This is fine as best-effort since it doesn't impact any of our core compilation logic, i may fix forward if there are issues and will think about how to test.

@meta-cla meta-cla bot added the CLA Signed label Feb 16, 2026
@josephsavona josephsavona requested a review from mofeiZ February 16, 2026 00:03
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Feb 16, 2026
Tracks locations for reactive scope dependencies, both on the deps and portions of the path. The immediate need for this is a non-public experiment where we're exploring type-directed compilation, and sometimes look up the types of expressions by location. We need to preserve locations accurately for that to work, including the locations of the deps.

## Test Plan

Locations for dependencies are not easy to test: i manually spot-checked the new fixture to ensure that the deps look right. This is fine as best-effort since it doesn't impact any of our core compilation logic, i may fix forward if there are issues and will think about how to test.
@josephsavona josephsavona merged commit 4ac4753 into main Feb 17, 2026
18 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 17, 2026
Tracks locations for reactive scope dependencies, both on the deps and
portions of the path. The immediate need for this is a non-public
experiment where we're exploring type-directed compilation, and
sometimes look up the types of expressions by location. We need to
preserve locations accurately for that to work, including the locations
of the deps.

## Test Plan

Locations for dependencies are not easy to test: i manually spot-checked
the new fixture to ensure that the deps look right. This is fine as
best-effort since it doesn't impact any of our core compilation logic, i
may fix forward if there are issues and will think about how to test.

DiffTrain build for [4ac4753](4ac4753)
github-actions bot pushed a commit that referenced this pull request Feb 17, 2026
Tracks locations for reactive scope dependencies, both on the deps and
portions of the path. The immediate need for this is a non-public
experiment where we're exploring type-directed compilation, and
sometimes look up the types of expressions by location. We need to
preserve locations accurately for that to work, including the locations
of the deps.

## Test Plan

Locations for dependencies are not easy to test: i manually spot-checked
the new fixture to ensure that the deps look right. This is fine as
best-effort since it doesn't impact any of our core compilation logic, i
may fix forward if there are issues and will think about how to test.

DiffTrain build for [4ac4753](4ac4753)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants