You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VB -> C#: withBlock semicolon not in right line #436
Consolidating #437 into this for organizational purposed, use it as a test case for the general fix. Obviously in that case it's a colon rather than a semicolon.
In #518 I entirely switched out the trivia conversion for the one I developed in #512 and #517. There is definitely still plenty of room to improve, but now we have a solid foundation to build on at least.
It's generally my intention to do so whenever it'd take me under a minute of searching to find the right links. In this case I was just getting a little lazy assuming no one would care once it's released, but now I know someone does care, I will up my efforts.
Obviously I'll still miss things so feel free to continue to ask.
Activity
[-]withBlock semicolon not in right line[/-][+]VB -> C#: withBlock semicolon not in right line[/+]GrahamTheCoder commentedon Nov 23, 2019
Thanks for reporting this. This type of issue (semicolon in wrong place) can happen in quite a few places, usually where it's placed on a block structure like this.
To fix just this case we could special case VisitWithBlock in https://github.com/icsharpcode/CodeConverter/blob/master/ICSharpCode.CodeConverter/CSharp/CommentConvertingMethodBodyVisitor.cs
To fix the more general case, we might add a specific check for the semicolon symbol after trivia, and always move any trivia forwards one, which might be possible to add here:
https://github.com/icsharpcode/CodeConverter/blob/master/ICSharpCode.CodeConverter/Shared/TriviaConverter.cs#L133
GrahamTheCoder commentedon Nov 23, 2019
Consolidating #437 into this for organizational purposed, use it as a test case for the general fix. Obviously in that case it's a colon rather than a semicolon.
GrahamTheCoder commentedon Mar 7, 2020
The fix for this and #437 are both now released
Saibamen commentedon Mar 8, 2020
Which commit/PR?
GrahamTheCoder commentedon Mar 8, 2020
In #518 I entirely switched out the trivia conversion for the one I developed in #512 and #517. There is definitely still plenty of room to improve, but now we have a solid foundation to build on at least.
Saibamen commentedon Mar 8, 2020
Ok. Thank you.
Please add those information (linked issues and PRs) to help other people contribute to your project
GrahamTheCoder commentedon Mar 8, 2020
It's generally my intention to do so whenever it'd take me under a minute of searching to find the right links. In this case I was just getting a little lazy assuming no one would care once it's released, but now I know someone does care, I will up my efforts.
Obviously I'll still miss things so feel free to continue to ask.