File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 55
66//// class C {
77//// static j = /*c*/1 + 1/*d*/;
8- //// constructor(q: string = /*a*/"a" + "b "/*b*/) {
8+ //// constructor(q: string = /*a*/"hello "/*b*/) {
99//// }
1010//// }
1111
@@ -21,7 +21,7 @@ edit.applyRefactor({
2121 }
2222
2323 private static newFunction(): string {
24- return "a" + "b ";
24+ return "hello ";
2525 }
2626}`
2727} ) ;
@@ -32,7 +32,7 @@ verify.currentFileContentIs(`class C {
3232 }
3333
3434 private static newFunction(): string {
35- return "a" + "b ";
35+ return "hello ";
3636 }
3737}` ) ;
3838
@@ -52,7 +52,7 @@ edit.applyRefactor({
5252 }
5353
5454 private static newFunction(): string {
55- return "a" + "b ";
55+ return "hello ";
5656 }
5757}`
5858} ) ;
Original file line number Diff line number Diff line change 33// You cannot extract a function initializer into the function's body.
44// The innermost scope (scope_0) is the sibling of the function, not the function itself.
55
6- //// function fn(x = /*a*/1 + 1 /*b*/) {
6+ //// function fn(x = /*a*/3 /*b*/) {
77//// }
88
99goTo . select ( 'a' , 'b' ) ;
@@ -15,7 +15,7 @@ edit.applyRefactor({
1515`function fn(x = /*RENAME*/newFunction()) {
1616}
1717function newFunction() {
18- return 1 + 1 ;
18+ return 3 ;
1919}
2020`
2121} ) ;
You can’t perform that action at this time.
0 commit comments