Commit 2eb5064
committed
refactor: simplify
Can actually split out adding the functions from getting the impl to
update or create thanks to being able to refer to the impl ast node.
FIXME Context:
Unfortunately we can't adjust the indentation of the newly added function
inside of `ast::AssocItemList::add_item` since for some reason the `todo!()`
placeholder generated by `add_missing_impl_members` and
`replace_derive_with_manual_impl` gets indented weirdly.generate_delegate_method
1 parent 09a3bd5 commit 2eb5064
File tree
1 file changed
+15
-31
lines changed- crates/ide-assists/src/handlers
1 file changed
+15
-31
lines changedLines changed: 15 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
165 | 147 | | |
166 | | - | |
167 | 148 | | |
168 | 149 | | |
169 | 150 | | |
| |||
178 | 159 | | |
179 | 160 | | |
180 | 161 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 162 | | |
188 | 163 | | |
189 | 164 | | |
| |||
198 | 173 | | |
199 | 174 | | |
200 | 175 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 176 | + | |
204 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
205 | 189 | | |
206 | 190 | | |
207 | 191 | | |
| |||
0 commit comments