Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: declare name in flowParseInterfaceish
- Set BIND_LEXICAL to interfaceish - Set BIND_VAR to DeclareClass - Enter SCOPE_VAR for DeclareModule
- Loading branch information
Showing
19 changed files
with
522 additions
and
111 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
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
4 changes: 2 additions & 2 deletions
4
packages/babel-generator/test/fixtures/flow/internal-slot/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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
declare class C { static [[foo]]: T } | ||
declare class C { [[foo]]: T } | ||
interface I { [[foo]]: X } | ||
interface I { [[foo]](): X } | ||
interface I1 { [[foo]]: X } | ||
interface I2 { [[foo]](): X } | ||
type T1 = { [[foo]]: X } | ||
type T2 = { [[foo]](): X } | ||
type T3 = { [[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
4 changes: 2 additions & 2 deletions
4
packages/babel-generator/test/fixtures/flow/iterator-inside-interface/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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
interface A { | ||
interface A1 { | ||
@@iterator(): Iterator<File>; | ||
} | ||
|
||
interface A { | ||
interface A2 { | ||
@@asyncIterator(): Iterator<File>; | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/babel-generator/test/fixtures/flow/iterator-inside-interface/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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
interface A { | ||
interface A1 { | ||
@@iterator(): Iterator<File> | ||
} | ||
interface A { | ||
interface A2 { | ||
@@asyncIterator(): Iterator<File> | ||
} |
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
9 changes: 7 additions & 2 deletions
9
packages/babel-parser/test/fixtures/flow/regression/issue-10044/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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
interface Foo {} | ||
declare class C1 {} | ||
declare interface I1 {} | ||
declare type T1 = number; | ||
|
||
export type { Foo } | ||
interface I2 {} | ||
type T2 = number; | ||
|
||
export type { C1, I1, I2, T1, T2 } |
Oops, something went wrong.