gircore / gir.core

A C# binding generator for GObject based libraries providing a C# friendly API surface
https://gircore.github.io/
MIT License
279 stars 29 forks source link

Remove duplicate semicolon in return statements #1068

Closed adamreeve closed 1 month ago

adamreeve commented 1 month ago

This is a minor tidy up to the generated code. Some of the expressions returned from ReturnTypeConverter implementations added a semicolon, but a semicolon is already added everywhere ReturnTypeToManagedExpression.Render is called.

This didn't cause any build failures but Rider would show red lines when viewing the generated code and complain about "unreachable code", referring to the empty statement before the second semicolon.

badcel commented 1 month ago

Thank you :+1: