@@ -552,8 +552,8 @@ const obj = parse(`// top comment
552552
553553// Move top comment to bottom
554554moveComments (obj , obj ,
555- { kind : ' before-all' },
556- { kind : ' after-all' }
555+ { where : ' before-all' },
556+ { where : ' after-all' }
557557)
558558
559559console .log (stringify (obj , null , 2 ))
@@ -574,8 +574,8 @@ const target = { bar: 2 }
574574
575575// Move comment from source to target
576576moveComments (source , target ,
577- { kind : ' after-value' , key: ' foo' },
578- { kind : ' before' , key: ' bar' }
577+ { where : ' after-value' , key: ' foo' },
578+ { where : ' before' , key: ' bar' }
579579)
580580
581581console .log (stringify (target , null , 2 ))
@@ -596,8 +596,8 @@ const obj = parse(`{
596596
597597// By default, comments are appended (override = false)
598598moveComments (obj , obj ,
599- { kind : ' after-value' , key: ' foo' },
600- { kind : ' before' , key: ' foo' }
599+ { where : ' after-value' , key: ' foo' },
600+ { where : ' before' , key: ' foo' }
601601)
602602
603603console .log (stringify (obj , null , 2 ))
@@ -610,8 +610,8 @@ console.log(stringify(obj, null, 2))
610610
611611// With override = true, existing comments are replaced
612612moveComments (obj , obj ,
613- { kind : ' before' , key: ' bar' },
614- { kind : ' before' , key: ' foo' },
613+ { where : ' before' , key: ' bar' },
614+ { where : ' before' , key: ' foo' },
615615 true // override existing comments
616616)
617617` ` `
0 commit comments