-
-
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.
- Loading branch information
1 parent
5dcdd39
commit 35938c0
Showing
18 changed files
with
129 additions
and
27 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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...tor/test/fixtures/decorators/options.json → .../fixtures/decorators-babel-7/options.json
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
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
packages/babel-generator/test/fixtures/decoratorsBeforeExport/options.json
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,3 @@ | ||
{ | ||
"BABEL_8_BREAKING": false | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-generator/test/fixtures/regression/11870/options.json
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,4 +1,4 @@ | ||
{ | ||
"retainLines": true, | ||
"plugins": [["decorators", { "decoratorsBeforeExport": true }]] | ||
"plugins": ["decorators-legacy"] | ||
} |
45 changes: 45 additions & 0 deletions
45
packages/babel-generator/test/fixtures/types/Decorator-babel-7/input.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var obj = { | ||
@foo | ||
@bar | ||
foo: "bar", | ||
|
||
@foo | ||
@bar | ||
foo() {}, | ||
|
||
@foo | ||
get foo() {}, | ||
|
||
@bar | ||
set bar(foo) {} | ||
}; | ||
|
||
class Foo { | ||
@foo | ||
@bar | ||
foo() {} | ||
|
||
@foo | ||
@bar | ||
foo() {} | ||
|
||
@foo | ||
get foo() {} | ||
|
||
@bar | ||
set bar(foo) {} | ||
} | ||
|
||
@foo | ||
export default class Foo2 { | ||
bar() { | ||
class Baz {} | ||
} | ||
} | ||
|
||
@foo | ||
export class Foo3 { | ||
bar() { | ||
class Baz {} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/babel-generator/test/fixtures/types/Decorator-babel-7/options.json
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,4 @@ | ||
{ | ||
"BABEL_8_BREAKING": false, | ||
"plugins": ["decorators-legacy"] | ||
} |
48 changes: 48 additions & 0 deletions
48
packages/babel-generator/test/fixtures/types/Decorator-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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
var obj = { | ||
@foo | ||
@bar | ||
foo: "bar", | ||
|
||
@foo | ||
@bar | ||
foo() {}, | ||
|
||
@foo | ||
get foo() {}, | ||
|
||
@bar | ||
set bar(foo) {} | ||
|
||
}; | ||
|
||
class Foo { | ||
@foo | ||
@bar | ||
foo() {} | ||
|
||
@foo | ||
@bar | ||
foo() {} | ||
|
||
@foo | ||
get foo() {} | ||
|
||
@bar | ||
set bar(foo) {} | ||
|
||
} | ||
|
||
export default @foo | ||
class Foo2 { | ||
bar() { | ||
class Baz {} | ||
} | ||
|
||
} | ||
export @foo | ||
class Foo3 { | ||
bar() { | ||
class Baz {} | ||
} | ||
|
||
} |
5 changes: 4 additions & 1 deletion
5
packages/babel-generator/test/fixtures/types/Decorator/options.json
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 +1,4 @@ | ||
{ "plugins": ["decorators-legacy"] } | ||
{ | ||
"BABEL_8_BREAKING": true, | ||
"plugins": ["decorators-legacy"] | ||
} |
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