Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse declare modifier around accessibility modifiers (#11146)
* fix: parse declare modifiers around accessibility modifiers * test: add tests * fix: check duplicate modifiers in modified nodes * fix flow error
- Loading branch information
Showing
7 changed files
with
649 additions
and
17 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
11 changes: 11 additions & 0 deletions
11
packages/babel-parser/test/fixtures/typescript/class/declare-field-modifiers/input.ts
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,11 @@ | ||
class A { | ||
declare static foo; | ||
static declare foo0: string; | ||
|
||
declare public foo1; | ||
public declare foo2; | ||
|
||
declare public static foo4; | ||
public declare static foo3; | ||
public static declare foo5; | ||
} |
Oops, something went wrong.