Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static Doc PrintHead(SimpleLambdaExpressionSyntax node, PrintingContext c
{
return Doc.Concat(
Modifiers.PrintSorted(node.Modifiers, context),
Node.Print(node.Parameter, context),
Doc.Group(Node.Print(node.Parameter, context)),
" ",
Token.Print(node.ArrowToken, context)
);
Expand All @@ -29,7 +29,7 @@ public static Doc PrintBody(SimpleLambdaExpressionSyntax node, PrintingContext c
" ",
Node.Print(node.Body, context)
),
_ => Doc.Indent(Doc.Line, Node.Print(node.Body, context)),
_ => Doc.Group(Doc.Indent(Doc.Line, Node.Print(node.Body, context))),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ this.SomeMethod(

roleNames
.ToList()
.ForEach(role =>
this.SomeProperty.Setup(o => longThing_______________________________________)
.ForEach(role => this.SomeProperty.Setup(o => longThing_______________________________________)
);

roleNames
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@ public class ClassName
|| t.OtherLongColumn________________________________
);

Select______________________________________(superLongName_________________________ =>
true
Select______________________________________(superLongName_________________________ => true
);

this.Select_________________________________(selector: static longName_____________ =>
true
this.Select_________________________________(selector: static longName_____________ => true
);

this.Select_________________________________________(
Expand All @@ -136,6 +134,37 @@ public class ClassName
return x;
});

this.Where___________________(
x // Comment
=>
{
return x;
}
);

this.Where___________________(
// Comment
x =>
{
return x;
}
);

this.Where___________________(
// Comment
() =>
{
return 1;
}
);

this.Where___________________(
// Comment
x => true,
// Comment
x => true
);

this.Where______________________________________(
superLongName________________________________ =>
{
Expand Down