Closed Willyham closed 2 years ago
That's a tricky issue.
Let's see what happens in each case:
Don't strip Account entirely
SetFooAccount
SetFooAccountAccount
Drop strip if conflict exists.
That's reasonable.
Add extra suffix if conflict exists
I feel this is the same as the first scenario, with a different suffix.
Error out and don't generate code
This also would make sense.
How about this:
Yep, that sounds like a good solution.
Release v0.2.2
Assume an IDL with this structure:
As
Account
is stripped from the latter name, duplicateGetFoo
andSetFoo
receiver methods are created. I'm running into this in the real world with an existing project.Happy to contribute a fix but not sure what the solution should be. Possibilities:
Account
entirely