Commit d5e963b
committed
[TypeChecker] NFC: Add a dedicated method to get outermost attached wrapper
The outermost wrapper is the one at index `0` in the wrapper list
but it's easy for humans to make a reverse assumption since outermost
is the back of the list. Let's add a dedicated method to reduce error
probability of the property wrapper APIs.
(cherry picked from commit 5ee5a22)1 parent 3c39957 commit d5e963b
File tree
7 files changed
+23
-9
lines changed- include/swift/AST
- lib
- AST
- Sema
7 files changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5430 | 5430 | | |
5431 | 5431 | | |
5432 | 5432 | | |
| 5433 | + | |
| 5434 | + | |
| 5435 | + | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
5433 | 5447 | | |
5434 | 5448 | | |
5435 | 5449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6532 | 6532 | | |
6533 | 6533 | | |
6534 | 6534 | | |
6535 | | - | |
| 6535 | + | |
6536 | 6536 | | |
6537 | 6537 | | |
6538 | 6538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8564 | 8564 | | |
8565 | 8565 | | |
8566 | 8566 | | |
8567 | | - | |
8568 | | - | |
| 8567 | + | |
| 8568 | + | |
8569 | 8569 | | |
8570 | 8570 | | |
8571 | 8571 | | |
| |||
8983 | 8983 | | |
8984 | 8984 | | |
8985 | 8985 | | |
8986 | | - | |
| 8986 | + | |
8987 | 8987 | | |
8988 | 8988 | | |
8989 | 8989 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3568 | 3568 | | |
3569 | 3569 | | |
3570 | 3570 | | |
3571 | | - | |
| 3571 | + | |
3572 | 3572 | | |
3573 | 3573 | | |
3574 | 3574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9989 | 9989 | | |
9990 | 9990 | | |
9991 | 9991 | | |
9992 | | - | |
| 9992 | + | |
9993 | 9993 | | |
9994 | 9994 | | |
9995 | 9995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6327 | 6327 | | |
6328 | 6328 | | |
6329 | 6329 | | |
6330 | | - | |
| 6330 | + | |
6331 | 6331 | | |
6332 | | - | |
| 6332 | + | |
6333 | 6333 | | |
6334 | 6334 | | |
6335 | 6335 | | |
| |||
0 commit comments