-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix bugs in ClassProperty matching/replacement
- Loading branch information
1 parent
334ea11
commit e4be02e
Showing
4 changed files
with
50 additions
and
6 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,21 @@ | ||
export const input = ` | ||
class Foo { | ||
a: number; | ||
b: string; | ||
} | ||
` | ||
|
||
export const find = ` | ||
class X { /**/ $a: $T } | ||
` | ||
|
||
export const replace = ` | ||
class X { /**/ declare $a: $T } | ||
` | ||
|
||
export const expectedReplace = ` | ||
class Foo { | ||
declare a: number; | ||
declare b: string; | ||
} | ||
` |
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