File tree Expand file tree Collapse file tree 13 files changed +57
-57
lines changed Expand file tree Collapse file tree 13 files changed +57
-57
lines changed Original file line number Diff line number Diff line change @@ -577,11 +577,11 @@ namespace A {
577
577
assert . equal ( result . errors , undefined , "expect no errors" ) ;
578
578
const results = refactor . extractMethod . getPossibleExtractions ( result . targetRange , context ) ;
579
579
const data : string [ ] = [ ] ;
580
- data . push ( `==ORIGINAL==` ) ;
580
+ data . push ( `// ==ORIGINAL==` ) ;
581
581
data . push ( sourceFile . text ) ;
582
582
for ( const r of results ) {
583
583
const changes = refactor . extractMethod . getPossibleExtractions ( result . targetRange , context , results . indexOf ( r ) ) [ 0 ] . changes ;
584
- data . push ( `==SCOPE::${ r . scopeDescription } ==` ) ;
584
+ data . push ( `// ==SCOPE::${ r . scopeDescription } ==` ) ;
585
585
data . push ( textChanges . applyChanges ( sourceFile . text , changes [ 0 ] . textChanges ) ) ;
586
586
}
587
587
return data . join ( newLineCharacter ) ;
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
let x = 1 ;
4
4
function foo ( ) {
@@ -14,7 +14,7 @@ namespace A {
14
14
}
15
15
}
16
16
}
17
- == SCOPE ::function 'a' ==
17
+ // ==SCOPE::function 'a'==
18
18
namespace A {
19
19
let x = 1 ;
20
20
function foo ( ) {
@@ -34,7 +34,7 @@ namespace A {
34
34
}
35
35
}
36
36
}
37
- == SCOPE ::namespace 'B' ==
37
+ // ==SCOPE::namespace 'B'==
38
38
namespace A {
39
39
let x = 1 ;
40
40
function foo ( ) {
@@ -55,7 +55,7 @@ namespace A {
55
55
}
56
56
}
57
57
}
58
- == SCOPE ::namespace 'A' ==
58
+ // ==SCOPE::namespace 'A'==
59
59
namespace A {
60
60
let x = 1 ;
61
61
function foo ( ) {
@@ -76,7 +76,7 @@ namespace A {
76
76
return a ;
77
77
}
78
78
}
79
- == SCOPE::global scope ==
79
+ // ==SCOPE::global scope==
80
80
namespace A {
81
81
let x = 1 ;
82
82
function foo ( ) {
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
export interface I { x : number } ;
4
4
class C {
@@ -9,7 +9,7 @@ namespace A {
9
9
}
10
10
}
11
11
}
12
- == SCOPE::class 'C' ==
12
+ // ==SCOPE::class 'C'==
13
13
namespace A {
14
14
export interface I { x : number } ;
15
15
class C {
@@ -24,7 +24,7 @@ namespace A {
24
24
}
25
25
}
26
26
}
27
- == SCOPE::namespace 'A' ==
27
+ // ==SCOPE::namespace 'A'==
28
28
namespace A {
29
29
export interface I { x : number } ;
30
30
class C {
@@ -39,7 +39,7 @@ namespace A {
39
39
return a1 . x + 10 ;
40
40
}
41
41
}
42
- == SCOPE::global scope ==
42
+ // ==SCOPE::global scope==
43
43
namespace A {
44
44
export interface I { x : number } ;
45
45
class C {
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
let y = 1 ;
4
4
class C {
@@ -11,7 +11,7 @@ namespace A {
11
11
}
12
12
}
13
13
}
14
- = = SCOPE ::class 'C' ==
14
+ // ==SCOPE::class 'C'==
15
15
namespace A {
16
16
let y = 1 ;
17
17
class C {
@@ -30,7 +30,7 @@ namespace A {
30
30
}
31
31
}
32
32
}
33
- = = SCOPE ::namespace 'A' ==
33
+ // ==SCOPE::namespace 'A'==
34
34
namespace A {
35
35
let y = 1 ;
36
36
class C {
@@ -49,7 +49,7 @@ namespace A {
49
49
return { __return : a1 . x + 10 , z } ;
50
50
}
51
51
}
52
- = = SCOPE ::global scope ==
52
+ // ==SCOPE::global scope==
53
53
namespace A {
54
54
let y = 1 ;
55
55
class C {
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
let y = 1 ;
4
4
class C {
@@ -13,7 +13,7 @@ namespace A {
13
13
}
14
14
}
15
15
}
16
- = = SCOPE ::class 'C' ==
16
+ // ==SCOPE::class 'C'==
17
17
namespace A {
18
18
let y = 1 ;
19
19
class C {
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
let x = 1 ;
4
4
function foo ( ) {
@@ -12,7 +12,7 @@ namespace A {
12
12
}
13
13
}
14
14
}
15
- == SCOPE ::function 'a' ==
15
+ // ==SCOPE::function 'a'==
16
16
namespace A {
17
17
let x = 1 ;
18
18
function foo ( ) {
@@ -30,7 +30,7 @@ namespace A {
30
30
}
31
31
}
32
32
}
33
- == SCOPE ::namespace 'B' ==
33
+ // ==SCOPE::namespace 'B'==
34
34
namespace A {
35
35
let x = 1 ;
36
36
function foo ( ) {
@@ -48,7 +48,7 @@ namespace A {
48
48
}
49
49
}
50
50
}
51
- == SCOPE ::namespace 'A' ==
51
+ // ==SCOPE::namespace 'A'==
52
52
namespace A {
53
53
let x = 1 ;
54
54
function foo ( ) {
@@ -66,7 +66,7 @@ namespace A {
66
66
return foo ( ) ;
67
67
}
68
68
}
69
- == SCOPE::global scope ==
69
+ // ==SCOPE::global scope==
70
70
namespace A {
71
71
let x = 1 ;
72
72
function foo ( ) {
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
function foo ( ) {
4
4
}
@@ -11,7 +11,7 @@ namespace A {
11
11
}
12
12
}
13
13
}
14
- == SCOPE::function 'a' ==
14
+ // ==SCOPE::function 'a'==
15
15
namespace A {
16
16
function foo ( ) {
17
17
}
@@ -28,7 +28,7 @@ namespace A {
28
28
}
29
29
}
30
30
}
31
- == SCOPE::namespace 'B' ==
31
+ // ==SCOPE::namespace 'B'==
32
32
namespace A {
33
33
function foo ( ) {
34
34
}
@@ -45,7 +45,7 @@ namespace A {
45
45
}
46
46
}
47
47
}
48
- == SCOPE::namespace 'A' ==
48
+ // ==SCOPE::namespace 'A'==
49
49
namespace A {
50
50
function foo ( ) {
51
51
}
@@ -62,7 +62,7 @@ namespace A {
62
62
return foo ( ) ;
63
63
}
64
64
}
65
- == SCOPE::global scope ==
65
+ // ==SCOPE::global scope==
66
66
namespace A {
67
67
function foo ( ) {
68
68
}
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
function foo ( ) {
4
4
}
@@ -13,7 +13,7 @@ namespace A {
13
13
}
14
14
}
15
15
}
16
- == SCOPE::function 'a' ==
16
+ // ==SCOPE::function 'a'==
17
17
namespace A {
18
18
function foo ( ) {
19
19
}
@@ -32,7 +32,7 @@ namespace A {
32
32
}
33
33
}
34
34
}
35
- == SCOPE::namespace 'B' ==
35
+ // ==SCOPE::namespace 'B'==
36
36
namespace A {
37
37
function foo ( ) {
38
38
}
@@ -51,7 +51,7 @@ namespace A {
51
51
}
52
52
}
53
53
}
54
- == SCOPE::namespace 'A' ==
54
+ // ==SCOPE::namespace 'A'==
55
55
namespace A {
56
56
function foo ( ) {
57
57
}
@@ -70,7 +70,7 @@ namespace A {
70
70
return foo ( ) ;
71
71
}
72
72
}
73
- == SCOPE::global scope ==
73
+ // ==SCOPE::global scope==
74
74
namespace A {
75
75
function foo ( ) {
76
76
}
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
let x = 1 ;
4
4
export function foo ( ) {
@@ -14,7 +14,7 @@ namespace A {
14
14
}
15
15
}
16
16
}
17
- == SCOPE::function 'a' ==
17
+ // ==SCOPE::function 'a'==
18
18
namespace A {
19
19
let x = 1 ;
20
20
export function foo ( ) {
@@ -34,7 +34,7 @@ namespace A {
34
34
}
35
35
}
36
36
}
37
- == SCOPE::namespace 'B' ==
37
+ // ==SCOPE::namespace 'B'==
38
38
namespace A {
39
39
let x = 1 ;
40
40
export function foo ( ) {
@@ -55,7 +55,7 @@ namespace A {
55
55
}
56
56
}
57
57
}
58
- == SCOPE::namespace 'A' ==
58
+ // ==SCOPE::namespace 'A'==
59
59
namespace A {
60
60
let x = 1 ;
61
61
export function foo ( ) {
@@ -76,7 +76,7 @@ namespace A {
76
76
return a ;
77
77
}
78
78
}
79
- == SCOPE::global scope ==
79
+ // ==SCOPE::global scope==
80
80
namespace A {
81
81
let x = 1 ;
82
82
export function foo ( ) {
Original file line number Diff line number Diff line change 1
- = = ORIGINAL ==
1
+ // ==ORIGINAL==
2
2
namespace A {
3
3
let x = 1 ;
4
4
export function foo ( ) {
@@ -14,7 +14,7 @@ namespace A {
14
14
}
15
15
}
16
16
}
17
- == SCOPE::function 'a' ==
17
+ // ==SCOPE::function 'a'==
18
18
namespace A {
19
19
let x = 1 ;
20
20
export function foo ( ) {
@@ -34,7 +34,7 @@ namespace A {
34
34
}
35
35
}
36
36
}
37
- == SCOPE::namespace 'B' ==
37
+ // ==SCOPE::namespace 'B'==
38
38
namespace A {
39
39
let x = 1 ;
40
40
export function foo ( ) {
@@ -56,7 +56,7 @@ namespace A {
56
56
}
57
57
}
58
58
}
59
- == SCOPE::namespace 'A' ==
59
+ // ==SCOPE::namespace 'A'==
60
60
namespace A {
61
61
let x = 1 ;
62
62
export function foo ( ) {
@@ -78,7 +78,7 @@ namespace A {
78
78
return { __return : foo ( ) , a } ;
79
79
}
80
80
}
81
- == SCOPE::global scope ==
81
+ // ==SCOPE::global scope==
82
82
namespace A {
83
83
let x = 1 ;
84
84
export function foo ( ) {
You can’t perform that action at this time.
0 commit comments