Skip to content

Commit

Permalink
Fix join losing code (#509)
Browse files Browse the repository at this point in the history
closes #508
  • Loading branch information
belav authored Dec 6, 2021
1 parent 6c0ea70 commit f38e2e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ class ClassName
select c into d
select d;

var joinWitType =
from c in customers
join Customers c1 in customers_____________________________
on c1.GetHashCode() equals c.GetHashCode()
into e
select c into d
select d;

var complexQuery =
from c in customers
let d = c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public static Doc Print(JoinClauseSyntax node)
{
return Doc.Group(
Token.PrintWithSuffix(node.JoinKeyword, " "),
node.Type != null ? Doc.Concat(Node.Print(node.Type), " ") : Doc.Null,
Token.PrintWithSuffix(node.Identifier, " "),
Token.PrintWithSuffix(node.InKeyword, " "),
Node.Print(node.InExpression),
Expand Down

0 comments on commit f38e2e7

Please sign in to comment.