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

ForEachVariableStatement not breaking/indenting consistently with regular ForEachStatement #300

Closed
belav opened this issue Jun 12, 2021 · 0 comments · Fixed by #368
Closed
Assignees
Milestone

Comments

@belav
Copy link
Owner

belav commented Jun 12, 2021

I'm not exactly sure what this should look like, but it definitely isn't this.

foreach ((
    (int l2, int l3),
    (int total, string[] stats)
) in (from l2 in Enumerable.Range(1, 7)
from l3 in Enumerable.Range(1, 7)
select (l2, l3)).AsParallel()
    .Select(l => (l, res: GenerateTable(l.l2, l.l3, cutOff)))
    .OrderBy(v => v.res.Total))
{
    Console.WriteLine($"Stats for {l2}:{l3}");
    foreach (var line in stats) Console.WriteLine(line);
}
@belav belav self-assigned this Jul 19, 2021
@belav belav added this to the 0.9.8 milestone Jul 19, 2021
@belav belav changed the title ForEach with QueryExpression ForEachVariableStatement not breaking/indenting consistently with regular ForEachStatement Jul 19, 2021
belav added a commit that referenced this issue Jul 24, 2021
* Getting foreach variable formatting the same as a regular foreach

closes #300

* more kool-aid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant