Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,974 additions
and
482 deletions.
There are no files selected for viewing
38 changes: 0 additions & 38 deletions
38
packages/scope-manager/tests/fixtures/class/declaration/emit-metadata.ts
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.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,23 @@ | ||
//// @emitDecoratorMetadata = true | ||
|
||
function deco(...param: any) {} | ||
|
||
class T {} | ||
const keyName = 'foo'; | ||
|
||
class A { | ||
@deco | ||
set b(b: T) {} | ||
|
||
set ['a'](a: T) {} | ||
@deco | ||
get a() {} | ||
|
||
set [0](a: T) {} | ||
@deco | ||
get [0]() {} | ||
|
||
set [keyName](a: T) {} | ||
@deco | ||
get [keyName]() {} | ||
} |
Oops, something went wrong.