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
5b1b11d
commit 1d99d03
Showing
5 changed files
with
105 additions
and
5 deletions.
There are no files selected for viewing
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