Internal slot properties (#7947)

* Support internalSlots to babel-types and babel-generator

* Parsing support for internal slot properties

* Print internal slots in babel-generator

* Add whitespace before first internal slot property
This commit is contained in:
Sam Goldman
2018-05-17 04:48:12 +01:00
committed by Brian Ng
parent 8dcfabd0d7
commit b396cdcbe5
111 changed files with 1232 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
declare class C { static [[foo]]: T }
declare class C { [[foo]]: T }
interface T { [[foo]]: X }
interface T { [[foo]](): X }
type T = { [[foo]]: X }
type T = { [[foo]](): X }

View File

@@ -0,0 +1,18 @@
declare class C {
static [[foo]]: T
}
declare class C {
[[foo]]: T
}
interface T {
[[foo]]: X
}
interface T {
[[foo]]() => X
}
type T = {
[[foo]]: X
};
type T = {
[[foo]]() => X
};