Commit e9baa3f
committed
Fix interpolated string effect placement
This fixes the placement of the await fix-it inside of interpolated
strings. We were putting the effect between the `\` and `(`, which
doesn't exactly work out very well. I'm intentionally being relatively
gentle with the casting when grabbing the body of the interpolated
string.
I can't think of a valid expression that doesn't result in that
structure, so it's probably safe to do a straight cast, and probably
should switch it over eventually. In the current state-of-affairs, it
will put the fix-it placement in the wrong place if my assumptions are
broken about the structure of the code.1 parent 3da0a54 commit e9baa3f
1 file changed
+33
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1439 | 1444 | | |
1440 | 1445 | | |
1441 | 1446 | | |
| |||
2084 | 2089 | | |
2085 | 2090 | | |
2086 | 2091 | | |
2087 | | - | |
2088 | | - | |
| 2092 | + | |
| 2093 | + | |
2089 | 2094 | | |
2090 | 2095 | | |
2091 | 2096 | | |
2092 | 2097 | | |
2093 | 2098 | | |
2094 | 2099 | | |
2095 | | - | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
2096 | 2124 | | |
2097 | 2125 | | |
2098 | 2126 | | |
| |||
2620 | 2648 | | |
2621 | 2649 | | |
2622 | 2650 | | |
2623 | | - | |
| 2651 | + | |
| 2652 | + | |
2624 | 2653 | | |
2625 | 2654 | | |
2626 | 2655 | | |
| |||
0 commit comments