-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix moving comments of removed nodes (#15427)
- Loading branch information
1 parent
fad4e77
commit d917995
Showing
14 changed files
with
132 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ties/test/fixtures/compile-to-class/constructor-collision-ignores-types-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
class C { | ||
// Output should not use `_initialiseProps` | ||
|
||
constructor(T) { | ||
// Output should not use `_initialiseProps` | ||
babelHelpers.defineProperty(this, "y", 0); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...est/fixtures/compile-to-class/constructor-collision-ignores-types-loose-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
class C { | ||
// Output should not use `_initialiseProps` | ||
|
||
constructor(T) { | ||
// Output should not use `_initialiseProps` | ||
this.y = 0; | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...erties/test/fixtures/compile-to-class/constructor-collision-ignores-types-loose/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...s-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/babel-plugin-transform-typescript/test/fixtures/exports/issue-9916-1/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @module | ||
*/ | ||
|
||
import '../message-bus'; | ||
|
||
/** | ||
* @typedef {Function} PromiseResolveCb | ||
*/ | ||
export type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void; | ||
|
||
/** | ||
* @typedef {Function} PromiseRejectCb | ||
*/ | ||
export type PromiseRejectCb = (reason?: any) => void; | ||
|
||
var a; |
15 changes: 15 additions & 0 deletions
15
packages/babel-plugin-transform-typescript/test/fixtures/exports/issue-9916-1/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @module | ||
*/ | ||
|
||
import '../message-bus'; | ||
|
||
/** | ||
* @typedef {Function} PromiseResolveCb | ||
*/ | ||
|
||
/** | ||
* @typedef {Function} PromiseRejectCb | ||
*/ | ||
|
||
var a; |
15 changes: 15 additions & 0 deletions
15
packages/babel-plugin-transform-typescript/test/fixtures/exports/issue-9916-2/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @module | ||
*/ | ||
|
||
import '../message-bus'; | ||
|
||
/** | ||
* @typedef {Function} PromiseResolveCb | ||
*/ | ||
export type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void; | ||
|
||
/** | ||
* @typedef {Function} PromiseRejectCb | ||
*/ | ||
export type PromiseRejectCb = (reason?: any) => void; |
13 changes: 13 additions & 0 deletions
13
packages/babel-plugin-transform-typescript/test/fixtures/exports/issue-9916-2/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @module | ||
*/ | ||
|
||
import '../message-bus'; | ||
|
||
/** | ||
* @typedef {Function} PromiseResolveCb | ||
*/ | ||
|
||
/** | ||
* @typedef {Function} PromiseRejectCb | ||
*/ |
15 changes: 15 additions & 0 deletions
15
packages/babel-plugin-transform-typescript/test/fixtures/exports/issue-9916-3/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @module | ||
*/ | ||
|
||
/** | ||
* @typedef {Function} PromiseResolveCb | ||
*/ | ||
export type PromiseResolveCb<T> = (value?: T | PromiseLike<T>) => void; | ||
|
||
/** | ||
* @typedef {Function} PromiseRejectCb | ||
*/ | ||
export type PromiseRejectCb = (reason?: any) => void; | ||
|
||
var a; |
14 changes: 14 additions & 0 deletions
14
packages/babel-plugin-transform-typescript/test/fixtures/exports/issue-9916-3/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @module | ||
*/ | ||
|
||
/** | ||
* @typedef {Function} PromiseResolveCb | ||
*/ | ||
|
||
/** | ||
* @typedef {Function} PromiseRejectCb | ||
*/ | ||
|
||
var a; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters