Skip to content
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

Make sure null conditionals break like regular expressions #593

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

belav
Copy link
Owner

@belav belav commented Feb 6, 2022

closes #561

@belav
Copy link
Owner Author

belav commented Feb 6, 2022

I still need to look at the result of this change on csharpier-repos. Creating the testing PR is taking significantly longer than it should. I created #594 to look into it.

@belav
Copy link
Owner Author

belav commented Feb 6, 2022

I just noticed that the !. has the same issue

        this.CallMethod_____________________()!.CallMethod_____________________()!.CallMethod_____________________();

I will fix that tomorrow.

@@ -2,6 +2,11 @@ namespace CSharpier.DocTypes;

internal abstract class Doc
{
public override string ToString()
{
return DocSerializer.Serialize(this);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised it took this long for that to happen 😁

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice for debugging, I don't know why I didn't look into how to do this like 12 months ago.

@shocklateboy92 shocklateboy92 merged commit 38400ba into master Feb 7, 2022
@shocklateboy92 shocklateboy92 deleted the null-conditional-break branch February 7, 2022 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null conditional operator does not break consistently
2 participants