4 references to ValueReturningLambdaExpression
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
738
Generator.
ValueReturningLambdaExpression
("x", {Generator.ReturnStatement(Generator.IdentifierName("y"))}),
2886
Assert.Null(Generator.GetExpression(Generator.
ValueReturningLambdaExpression
("p", {Generator.IdentifierName("x")})))
2887
Assert.Equal(1, Generator.GetStatements(Generator.
ValueReturningLambdaExpression
("p", {Generator.IdentifierName("x")})).Count)
2904
Assert.Equal("y", Generator.GetExpression(Generator.WithExpression(Generator.
ValueReturningLambdaExpression
("p", {Generator.IdentifierName("x")}), Generator.IdentifierName("y"))).ToString())