There's currently no supported mechanism for generating an expression-bodied member using SyntaxGenerator.
Ex.
public SomeType SomeProperty => _someValue;
Note: this is somewhat by design. VB doesn't support expression-bodied members. So it's not clear how this would work for them. Is there a reason you can't just manually create the C# syntax?
It's possible to generate it manually, but since I'm writing a language-agnostic code refactoring and SyntaxGenerator is intended for just that purpose, it seems like it should be a supported scenario.
It seems to me that for VB it should simply generate a normal read-only property, which is essentially equivalent.
PRs welcome.
I can see allowing for an expression-body parameter as well. For C# it would make a => property. For VB, it will depend on if you're making a sub or func. If it's a sub, it should just become an expression statement. If it's a func, it should become a return statement.
Most helpful comment
I can see allowing for an expression-body parameter as well. For C# it would make a => property. For VB, it will depend on if you're making a sub or func. If it's a sub, it should just become an expression statement. If it's a func, it should become a return statement.