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

AnonymousMethodExpressionSyntax breaking early #150

Closed
belav opened this issue Apr 26, 2021 · 0 comments
Closed

AnonymousMethodExpressionSyntax breaking early #150

belav opened this issue Apr 26, 2021 · 0 comments
Labels

Comments

@belav
Copy link
Owner

belav commented Apr 26, 2021

This is related to #100 but the solution to other nodes like IfStatementSyntax isn't easily implemented for AnonymousMethodExpressions.
Adding a group around Func<string, string, bool> f5 = delegate(string exactly80, string abcd)
is not easily possible.

This is also only the difference of about 2 characters, so it may not be worth the effort.

Expected result is

class ClassName
{
    void MethodName()
    {
        Func<string, string, bool> f5 = delegate(string exactly80, string abcd)
        {
            return false;
        };
    }
}

But actual result is

class ClassName
{
    void MethodName()
    {
        Func<string, string, bool> f5 = delegate(
            string exactly80,
            string abcd
        ) {
            return false;
        };
    }
}
@belav belav added type:bug Something isn't working area:formatting labels Apr 26, 2021
@belav belav closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant