This repository has been archived by the owner on May 19, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #727 from jridgewell/private-methods
classPrivateMethods enables PrivateName usage
- Loading branch information
Showing
34 changed files
with
161 additions
and
183 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
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-methods/async-generator/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,3 +1,3 @@ | ||
{ | ||
"plugins": ["classProperties", "classPrivateMethods", "asyncGenerators"] | ||
"plugins": ["classPrivateMethods", "asyncGenerators"] | ||
} |
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
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-methods/async/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,3 +1,3 @@ | ||
{ | ||
"plugins": ["classProperties", "classPrivateMethods"] | ||
"plugins": ["classPrivateMethods"] | ||
} |
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
7 changes: 2 additions & 5 deletions
7
test/fixtures/experimental/class-private-methods/failure-name-constructor/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,7 +1,4 @@ | ||
{ | ||
"throws": "Classes may not have a private field named '#constructor' (2:3)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateMethods" | ||
] | ||
"throws": "Classes may not have a private field named '#constructor' (2:2)", | ||
"plugins": [ "classPrivateMethods" ] | ||
} |
4 changes: 2 additions & 2 deletions
4
test/fixtures/experimental/class-private-methods/failure-no-plugin/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'classPrivateMethods' (3:3)", | ||
"plugins": ["classProperties", "classPrivateProperties"] | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'classPrivateMethods' (3:2)", | ||
"plugins": ["classPrivateProperties"] | ||
} |
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
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-methods/generator/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,3 +1,3 @@ | ||
{ | ||
"plugins": ["classProperties", "classPrivateMethods"] | ||
"plugins": ["classPrivateMethods"] | ||
} |
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
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-methods/get-set/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,3 +1,3 @@ | ||
{ | ||
"plugins": ["classProperties", "classPrivateMethods"] | ||
"plugins": ["classPrivateMethods"] | ||
} |
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
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-methods/method/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,3 +1,3 @@ | ||
{ | ||
"plugins": ["classProperties", "classPrivateMethods"] | ||
"plugins": ["classPrivateMethods"] | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-properties/asi-failure-generator/actual.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,4 +1,4 @@ | ||
class Foo { | ||
#p = x | ||
*#m () {} | ||
*m () {} | ||
} |
4 changes: 2 additions & 2 deletions
4
test/fixtures/experimental/class-private-properties/asi-failure-generator/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 @@ | ||
{ | ||
"throws": "Unexpected token (3:3)", | ||
"plugins": ["classProperties", "classPrivateProperties"] | ||
"throws": "Unexpected token, expected ; (3:8)", | ||
"plugins": ["classPrivateProperties"] | ||
} |
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-properties/asi-failure-inline/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 @@ | ||
{ | ||
"throws": "Unexpected token (2:5)", | ||
"plugins": ["classProperties", "classPrivateProperties"] | ||
"plugins": ["classPrivateProperties"] | ||
} |
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
2 changes: 1 addition & 1 deletion
2
test/fixtures/experimental/class-private-properties/asi-success/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,3 +1,3 @@ | ||
{ | ||
"plugins": ["classProperties", "classPrivateProperties"] | ||
"plugins": ["classPrivateProperties"] | ||
} |
5 changes: 1 addition & 4 deletions
5
test/fixtures/experimental/class-private-properties/failure-computed/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,7 +1,4 @@ | ||
{ | ||
"throws": "Unexpected token (3:3)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateProperties" | ||
] | ||
"plugins": [ "classPrivateProperties" ] | ||
} |
5 changes: 1 addition & 4 deletions
5
...xtures/experimental/class-private-properties/failure-delete-private-property/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,7 +1,4 @@ | ||
{ | ||
"throws": "Deleting a private field is not allowed (4:4)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateProperties" | ||
] | ||
"plugins": [ "classPrivateProperties" ] | ||
} |
7 changes: 2 additions & 5 deletions
7
test/fixtures/experimental/class-private-properties/failure-name-constructor/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,7 +1,4 @@ | ||
{ | ||
"throws": "Classes may not have a private field named '#constructor' (2:3)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateProperties" | ||
] | ||
"throws": "Classes may not have a private field named '#constructor' (2:2)", | ||
"plugins": [ "classPrivateProperties" ] | ||
} |
5 changes: 1 addition & 4 deletions
5
test/fixtures/experimental/class-private-properties/failure-numeric-literal/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,7 +1,4 @@ | ||
{ | ||
"throws": "Unexpected token (2:3)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateProperties" | ||
] | ||
"plugins": [ "classPrivateProperties" ] | ||
} |
2 changes: 1 addition & 1 deletion
2
...tures/experimental/class-private-properties/failure-numeric-start-identifier/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 @@ | ||
{ | ||
"throws": "Identifier directly after number (2:4)", | ||
"plugins": ["classProperties", "classPrivateProperties"] | ||
"plugins": ["classPrivateProperties"] | ||
} |
5 changes: 1 addition & 4 deletions
5
test/fixtures/experimental/class-private-properties/failure-shorthand/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,7 +1,4 @@ | ||
{ | ||
"throws": "Unexpected token (4:11)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateProperties" | ||
] | ||
"plugins": [ "classPrivateProperties" ] | ||
} |
5 changes: 1 addition & 4 deletions
5
test/fixtures/experimental/class-private-properties/failure-string-literal/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,7 +1,4 @@ | ||
{ | ||
"throws": "Unexpected token (2:3)", | ||
"plugins": [ | ||
"classProperties", | ||
"classPrivateProperties" | ||
] | ||
"plugins": [ "classPrivateProperties" ] | ||
} |
Oops, something went wrong.