10 references to ValueReturningLambdaExpression
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
3551
Assert.Equal(2, Generator.GetStatements(Generator.
ValueReturningLambdaExpression
(stmts)).Count);
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.vb (9)
2906
Assert.Equal("y", Generator.GetExpression(Generator.WithExpression(Generator.
ValueReturningLambdaExpression
({Generator.IdentifierName("x")}), Generator.IdentifierName("y"))).ToString())
2914
Generator.WithExpression(Generator.
ValueReturningLambdaExpression
({Generator.IdentifierName("s")}), Generator.IdentifierName("e")),
2924
Generator.WithExpression(Generator.
ValueReturningLambdaExpression
({Generator.IdentifierName("s")}), Generator.IdentifierName("e")),
2946
Generator.WithExpression(Generator.
ValueReturningLambdaExpression
({Generator.IdentifierName("s")}), Nothing),
2976
Assert.Equal(0, Generator.GetStatements(Generator.
ValueReturningLambdaExpression
({})).Count)
2977
Assert.Equal(2, Generator.GetStatements(Generator.
ValueReturningLambdaExpression
(stmts)).Count)
2990
Assert.Equal(2, Generator.GetStatements(Generator.WithStatements(Generator.
ValueReturningLambdaExpression
({}), stmts)).Count)
3010
Generator.WithStatements(Generator.
ValueReturningLambdaExpression
({}), stmts),
3036
Generator.WithStatements(Generator.
ValueReturningLambdaExpression
(stmts), {}),