Commit b67c2f1
Inline only-used-once closures in
Refactor `ExprConcatStrings::eval` by inlining two only-called-once
closures into the call-site, so that the code is easier to reason about
locally (especially since the variables that were closed over were
mutated all over the place within this function).
Also use curly braces with each branch for consistency in the the
resulting code.
This is a pure refactor, but also arguably causes us to depend less on
the optimizer; now, we don't have to make sure that this closure is
inlined.ExprConcatStrings::eval
1 parent ca9fde1 commit b67c2f1
1 file changed
+19
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | 2032 | | |
2054 | 2033 | | |
2055 | 2034 | | |
| |||
2111 | 2090 | | |
2112 | 2091 | | |
2113 | 2092 | | |
2114 | | - | |
| 2093 | + | |
2115 | 2094 | | |
2116 | | - | |
| 2095 | + | |
2117 | 2096 | | |
2118 | | - | |
| 2097 | + | |
2119 | 2098 | | |
2120 | 2099 | | |
2121 | 2100 | | |
2122 | 2101 | | |
2123 | 2102 | | |
2124 | | - | |
2125 | | - | |
2126 | | - | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
2127 | 2119 | | |
2128 | 2120 | | |
2129 | 2121 | | |
| |||
0 commit comments