cybertim / vscode-gengetset

Generate Getter and / or Setter Extension for Visual Studio Code
34 stars 17 forks source link

Add getter/setter generation from private constructor parameters #65

Open camilne opened 5 years ago

camilne commented 5 years ago

This adds getter/setter generation from private constructor parameters. It works similarly to the existing generation. It only generates for parameters that are private and have a type that is not a nested generic. It is also able to handle optional and default parameters. There are tests, and the matching method is in the regexutil file since it only makes sense to export a public-facing method (which is needed for testing). The constructor signature must be on a single line. Also, resolves #60 .