Commit 2142d82
committed
[compiler] Add missing source locations to statements, expressions
Adds missing locations to all the statement kinds that we produce in codegenInstruction(), and adds generic handling of source locations for the nodes produced by codegenInstructionValue(). There are definitely some places where we are still missing a location, but this should address some of the known issues we've seen such as missing location on `throw`.1 parent 0fba073 commit 2142d82
File tree
92 files changed
+164
-59
lines changed- compiler/packages/babel-plugin-react-compiler/src
- ReactiveScopes
- __tests__/fixtures/compiler
- gating
- new-mutability
- original-reactive-scopes-fork
- preserve-memo-validation
- propagate-scope-deps-hir-fork
- reduce-reactive-deps
- rules-of-hooks
- transform-fire
- bailout-retry
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
92 files changed
+164
-59
lines changedLines changed: 43 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
| 948 | + | |
| 949 | + | |
949 | 950 | | |
950 | 951 | | |
951 | 952 | | |
| |||
955 | 956 | | |
956 | 957 | | |
957 | 958 | | |
958 | | - | |
| 959 | + | |
| 960 | + | |
959 | 961 | | |
960 | 962 | | |
961 | 963 | | |
962 | 964 | | |
963 | 965 | | |
964 | 966 | | |
965 | | - | |
| 967 | + | |
| 968 | + | |
966 | 969 | | |
967 | 970 | | |
968 | 971 | | |
| |||
1047 | 1050 | | |
1048 | 1051 | | |
1049 | 1052 | | |
1050 | | - | |
| 1053 | + | |
| 1054 | + | |
1051 | 1055 | | |
1052 | 1056 | | |
1053 | 1057 | | |
| |||
1140 | 1144 | | |
1141 | 1145 | | |
1142 | 1146 | | |
1143 | | - | |
| 1147 | + | |
| 1148 | + | |
1144 | 1149 | | |
1145 | 1150 | | |
1146 | 1151 | | |
| |||
1162 | 1167 | | |
1163 | 1168 | | |
1164 | 1169 | | |
1165 | | - | |
| 1170 | + | |
1166 | 1171 | | |
1167 | 1172 | | |
1168 | 1173 | | |
| |||
1173 | 1178 | | |
1174 | 1179 | | |
1175 | 1180 | | |
1176 | | - | |
| 1181 | + | |
| 1182 | + | |
1177 | 1183 | | |
1178 | 1184 | | |
1179 | 1185 | | |
| |||
1186 | 1192 | | |
1187 | 1193 | | |
1188 | 1194 | | |
1189 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1190 | 1199 | | |
1191 | 1200 | | |
1192 | 1201 | | |
1193 | | - | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1194 | 1207 | | |
1195 | 1208 | | |
1196 | 1209 | | |
1197 | | - | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1198 | 1215 | | |
1199 | 1216 | | |
1200 | 1217 | | |
| |||
1205 | 1222 | | |
1206 | 1223 | | |
1207 | 1224 | | |
1208 | | - | |
| 1225 | + | |
| 1226 | + | |
1209 | 1227 | | |
1210 | 1228 | | |
1211 | 1229 | | |
| |||
1543 | 1561 | | |
1544 | 1562 | | |
1545 | 1563 | | |
1546 | | - | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
1547 | 1571 | | |
1548 | 1572 | | |
1549 | 1573 | | |
| |||
1558 | 1582 | | |
1559 | 1583 | | |
1560 | 1584 | | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1561 | 1589 | | |
1562 | 1590 | | |
1563 | 1591 | | |
| |||
2314 | 2342 | | |
2315 | 2343 | | |
2316 | 2344 | | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
2317 | 2348 | | |
2318 | 2349 | | |
2319 | 2350 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments