Commit f789974
committed
Cleaning up anchor finding in interpolated strings
The arglist didn't exist when I originally wrote this. Most of the
assertions were there to check my assumptions about the dyn-casts that
were being performed originally. In a non-asserts build, the dyn-casts
would not crash, but would emit the `await` insertion fix-it into the
wrong location. In an asserts build, it would crash instead.
I haven't heard about crashes, or misplaced fix-its from this for
roughly a year now, so I think it's safe to clean it up.
I'm keeping the `parent == nullptr` check since that would indicate an
issue in the implementation of `isEffectAnchor`.1 parent 7abc8a4 commit f789974
1 file changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2071 | 2071 | | |
2072 | 2072 | | |
2073 | 2073 | | |
2074 | | - | |
| 2074 | + | |
| 2075 | + | |
2075 | 2076 | | |
2076 | 2077 | | |
2077 | 2078 | | |
| |||
2091 | 2092 | | |
2092 | 2093 | | |
2093 | 2094 | | |
2094 | | - | |
2095 | 2095 | | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | 2096 | | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
| 2097 | + | |
| 2098 | + | |
2108 | 2099 | | |
2109 | 2100 | | |
2110 | 2101 | | |
2111 | | - | |
2112 | 2102 | | |
2113 | 2103 | | |
2114 | 2104 | | |
| |||
0 commit comments