File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -289,30 +289,10 @@ impl SourceChangeBuilder {
289
289
pub fn insert ( & mut self , offset : TextSize , text : impl Into < String > ) {
290
290
self . edit . insert ( offset, text. into ( ) )
291
291
}
292
- /// Append specified `snippet` at the given `offset`
293
- pub fn insert_snippet (
294
- & mut self ,
295
- _cap : SnippetCap ,
296
- offset : TextSize ,
297
- snippet : impl Into < String > ,
298
- ) {
299
- self . source_change . is_snippet = true ;
300
- self . insert ( offset, snippet) ;
301
- }
302
292
/// Replaces specified `range` of text with a given string.
303
293
pub fn replace ( & mut self , range : TextRange , replace_with : impl Into < String > ) {
304
294
self . edit . replace ( range, replace_with. into ( ) )
305
295
}
306
- /// Replaces specified `range` of text with a given `snippet`.
307
- pub fn replace_snippet (
308
- & mut self ,
309
- _cap : SnippetCap ,
310
- range : TextRange ,
311
- snippet : impl Into < String > ,
312
- ) {
313
- self . source_change . is_snippet = true ;
314
- self . replace ( range, snippet) ;
315
- }
316
296
pub fn replace_ast < N : AstNode > ( & mut self , old : N , new : N ) {
317
297
algo:: diff ( old. syntax ( ) , new. syntax ( ) ) . into_text_edit ( & mut self . edit )
318
298
}
You can’t perform that action at this time.
0 commit comments