Commit 100244a
committed
Avoid computing generated source notes on child notes
This could cause us to double up on the same note
for nested macro expansions, as we'd generate the
note, then when recursing back through the function
we'd compute the same note again. Also remove the
seemingly unused `lastBufferID` param.1 parent c35d119 commit 100244a
File tree
4 files changed
+10
-15
lines changed- include/swift/AST
- lib/AST
- test/Macros
4 files changed
+10
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
1173 | | - | |
| 1172 | + | |
1174 | 1173 | | |
1175 | 1174 | | |
1176 | 1175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
| 1275 | + | |
| 1276 | + | |
1278 | 1277 | | |
1279 | 1278 | | |
1280 | 1279 | | |
| |||
1285 | 1284 | | |
1286 | 1285 | | |
1287 | 1286 | | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | 1287 | | |
1295 | 1288 | | |
1296 | 1289 | | |
| |||
1337 | 1330 | | |
1338 | 1331 | | |
1339 | 1332 | | |
1340 | | - | |
1341 | 1333 | | |
1342 | 1334 | | |
1343 | 1335 | | |
1344 | 1336 | | |
1345 | 1337 | | |
1346 | 1338 | | |
1347 | 1339 | | |
1348 | | - | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1349 | 1345 | | |
1350 | 1346 | | |
1351 | 1347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments