fix corner case in unused

This commit is contained in:
alexlamsl
2018-07-01 14:34:42 +08:00
parent 6aa750010f
commit 5ffc17d4aa
56 changed files with 1588 additions and 973 deletions

View File

@@ -1,11 +1,15 @@
keep_name_of_getter: {
options = { unused: true };
options = {
unused: true,
}
input: { a = { get foo () {} } }
expect: { a = { get foo () {} } }
}
keep_name_of_setter: {
options = { unused: true };
options = {
unused: true,
}
input: { a = { set foo () {} } }
expect: { a = { set foo () {} } }
}