Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print ObjectTypeInternalSlot with both flow/babel parsers (#4869)
* Print ObjectTypeInternalSlot with both flow/babel parsers * chore: update to flow-parser@0.78.0 * test: update snapshot
- Loading branch information
1 parent
418a04b
commit 1391891
Showing
6 changed files
with
49 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`internal_slot.js - flow-verify 1`] = ` | ||
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 } | ||
type T = { [[foo]]?: X } | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
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 }; | ||
type T = { [[foo]]?: X }; | ||
`; |
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,7 @@ | ||
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 } | ||
type T = { [[foo]]?: X } |
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 @@ | ||
run_spec(__dirname, ["flow", "babylon"]); |
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