Commit df73eec
committed
Sema: generalize
Since this function is being called from the constraint solver now, we
need to generalize the way it obtains the Type of an Expression, as the
expression itself may not know its own type, only the solver does.
resolves rdar://134371893 / swiftlang#75999findSyntacticErrorForConsume
1 parent 34def0e commit df73eec
File tree
6 files changed
+35
-12
lines changed- include/swift/Sema
- lib/Sema
- test/Sema
6 files changed
+35
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6534 | 6534 | | |
6535 | 6535 | | |
6536 | 6536 | | |
6537 | | - | |
| 6537 | + | |
| 6538 | + | |
6538 | 6539 | | |
6539 | 6540 | | |
6540 | 6541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5620 | 5620 | | |
5621 | 5621 | | |
5622 | 5622 | | |
5623 | | - | |
| 5623 | + | |
5624 | 5624 | | |
5625 | | - | |
| 5625 | + | |
5626 | 5626 | | |
5627 | 5627 | | |
5628 | 5628 | | |
5629 | 5629 | | |
5630 | 5630 | | |
5631 | 5631 | | |
5632 | | - | |
| 5632 | + | |
5633 | 5633 | | |
5634 | | - | |
| 5634 | + | |
5635 | 5635 | | |
5636 | 5636 | | |
5637 | 5637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1478 | 1478 | | |
1479 | 1479 | | |
1480 | 1480 | | |
1481 | | - | |
| 1481 | + | |
| 1482 | + | |
1482 | 1483 | | |
1483 | 1484 | | |
1484 | 1485 | | |
1485 | 1486 | | |
1486 | | - | |
| 1487 | + | |
1487 | 1488 | | |
1488 | 1489 | | |
1489 | 1490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2338 | 2338 | | |
2339 | 2339 | | |
2340 | 2340 | | |
2341 | | - | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
2342 | 2344 | | |
2343 | 2345 | | |
2344 | 2346 | | |
2345 | 2347 | | |
2346 | 2348 | | |
2347 | 2349 | | |
2348 | 2350 | | |
2349 | | - | |
| 2351 | + | |
| 2352 | + | |
2350 | 2353 | | |
2351 | 2354 | | |
2352 | 2355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
0 commit comments