File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -289,30 +289,10 @@ impl SourceChangeBuilder {
289289 pub fn insert ( & mut self , offset : TextSize , text : impl Into < String > ) {
290290 self . edit . insert ( offset, text. into ( ) )
291291 }
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- }
302292 /// Replaces specified `range` of text with a given string.
303293 pub fn replace ( & mut self , range : TextRange , replace_with : impl Into < String > ) {
304294 self . edit . replace ( range, replace_with. into ( ) )
305295 }
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- }
316296 pub fn replace_ast < N : AstNode > ( & mut self , old : N , new : N ) {
317297 algo:: diff ( old. syntax ( ) , new. syntax ( ) ) . into_text_edit ( & mut self . edit )
318298 }
You can’t perform that action at this time.
0 commit comments