Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to have something like kind: "get | set"? #60

Open
dbatiste opened this issue Oct 23, 2020 · 0 comments
Open

Is it possible to have something like kind: "get | set"? #60

dbatiste opened this issue Oct 23, 2020 · 0 comments

Comments

@dbatiste
Copy link

My goal is to have all getters/setters grouped, getThenSet when both are present, but when only one is present, it is still ordered with the rest. For example:

get PropA() { }

get PropB() { }

set PropB(val) { }

set PropC(val) { }

get PropD() { }

The "accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }], almost does this, but it treats the non-paired get or set as different. Ideally I would be able to define a group something like [{ kind: "get|set", "sort": "alphabetical" }] and respecting the getThenSet when a pair is present.

Is something like this already possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant