-
Notifications
You must be signed in to change notification settings - Fork 3
Add ParseExceptionResult marker in DefaultVisit()
#14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
By adding this marker we can use the `FindParseFailures` recipe to produce reports, where we get a corresponding entry for each `J.Unknown` with that marker, including relevant details.
| prefix, | ||
| Markers.EMPTY, | ||
| new JRightPadded<Expression>(fa.Target, Format(Leading(node.ArgumentList)), Markers.EMPTY), | ||
| new JRightPadded<Expression>(fa.Target, fa.Padding.Name.Before, Markers.EMPTY), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, this slipped in by accident. Let me know if I should revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't matter, it's not correct anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw you had changed it to something else in the mean time. That definitely didn't work for me. With this change I could at least get tests like this (which I believe you reported somewhere) working:
void Test()
{
""blah"".Skip()
.ToList();
}But if you say it isn't correct, I believe you. I will let you take over.
|
No if you had a fix please revert as I was still wrapping my head around
the issue.
…On Tue, Oct 1, 2024, 4:09 p.m. Knut Wannheden ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Rewrite/src/Rewrite.CSharp/Parser/CSharpParserVisitor.cs
<#14 (comment)>
:
> @@ -397,7 +403,7 @@ public override J VisitIdentifierName(IdentifierNameSyntax node)
Core.Tree.RandomId(),
prefix,
Markers.EMPTY,
- new JRightPadded<Expression>(fa.Target, Format(Leading(node.ArgumentList)), Markers.EMPTY),
+ new JRightPadded<Expression>(fa.Target, fa.Padding.Name.Before, Markers.EMPTY),
I saw you had changed it to something else in the mean time. That
definitely didn't work for me. With this change I could at least get tests
like this (which I believe you reported somewhere) working:
void Test(){
""blah"".Skip()
.ToList();}
But if you say it isn't correct, I believe you. I will let you take over.
—
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAINFWEWTONIOMTEIUHMSATZZL6N7AVCNFSM6AAAAABPB4XRFGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNBRGM2TQMZYHA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
|
I am sorry I am a bit lost between your comment:
and now:
I think it is just easiest if you update / revert it to what is best for you. |
By adding this marker we can use the
FindParseFailuresrecipe to produce reports, where we get a corresponding entry for eachJ.Unknownwith that marker, including relevant details.