add support for experimental private abstract references syntax - closes #291
This commit is contained in:
7
test/fixtures/generation/types/PrivateDeclaration/actual.js
vendored
Normal file
7
test/fixtures/generation/types/PrivateDeclaration/actual.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
private A;
|
||||
private B, C;
|
||||
|
||||
class Test {
|
||||
private A;
|
||||
private B, C;
|
||||
}
|
||||
7
test/fixtures/generation/types/PrivateDeclaration/expected.js
vendored
Normal file
7
test/fixtures/generation/types/PrivateDeclaration/expected.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
private A;
|
||||
private B, C;
|
||||
|
||||
class Test {
|
||||
private A;
|
||||
private B, C;
|
||||
}
|
||||
12
test/fixtures/transformation/es7-abstract-references/private/actual.js
vendored
Normal file
12
test/fixtures/transformation/es7-abstract-references/private/actual.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
private A;
|
||||
private B, C;
|
||||
|
||||
class D {
|
||||
private E;
|
||||
private F, G;
|
||||
}
|
||||
|
||||
var H = class {
|
||||
private I;
|
||||
private J, K;
|
||||
};
|
||||
19
test/fixtures/transformation/es7-abstract-references/private/expected.js
vendored
Normal file
19
test/fixtures/transformation/es7-abstract-references/private/expected.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
var A = new WeakMap();
|
||||
var B = new WeakMap(), C = new WeakMap();
|
||||
(function () {
|
||||
var F = new WeakMap(), G = new WeakMap();
|
||||
var E = new WeakMap();
|
||||
var D = function D() {};
|
||||
|
||||
return D;
|
||||
})()
|
||||
|
||||
var H = (function () {
|
||||
var J = new WeakMap(), K = new WeakMap();
|
||||
var I = new WeakMap();
|
||||
var _class = function () {};
|
||||
|
||||
return _class;
|
||||
})();
|
||||
Reference in New Issue
Block a user