4 references to ValueReturningLambdaExpression
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.cs (4)
751
Generator.
ValueReturningLambdaExpression
("x", [Generator.ReturnStatement(Generator.IdentifierName("y"))]),
3436
Assert.Null(Generator.GetExpression(Generator.
ValueReturningLambdaExpression
("p", [Generator.IdentifierName("x")])));
3437
Assert.Equal(1, Generator.GetStatements(Generator.
ValueReturningLambdaExpression
("p", [Generator.IdentifierName("x")])).Count);
3470
Assert.Equal("y", Generator.GetExpression(Generator.WithExpression(Generator.
ValueReturningLambdaExpression
("p", [Generator.IdentifierName("x")]), Generator.IdentifierName("y"))).ToString());