File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ namespace ts.textChanges {
190
190
public deleteNodeInList ( sourceFile : SourceFile , node : Node ) {
191
191
const containingList = formatting . SmartIndenter . getContainingList ( node , sourceFile ) ;
192
192
if ( ! containingList ) {
193
+ Debug . fail ( "node is not a list element" ) ;
193
194
return this ;
194
195
}
195
196
const index = containingList . indexOf ( node ) ;
@@ -260,6 +261,7 @@ namespace ts.textChanges {
260
261
public insertNodeInListAfter ( sourceFile : SourceFile , after : Node , newNode : Node ) {
261
262
const containingList = formatting . SmartIndenter . getContainingList ( after , sourceFile ) ;
262
263
if ( ! containingList ) {
264
+ Debug . fail ( "node is not a list element" ) ;
263
265
return this ;
264
266
}
265
267
const index = containingList . indexOf ( after ) ;
You can’t perform that action at this time.
0 commit comments