10 references to ValueReturningLambdaExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
109
generator.
ValueReturningLambdaExpression
(
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.cs (4)
711
Generator.
ValueReturningLambdaExpression
("x", Generator.IdentifierName("y")),
3248
Assert.Equal(1, Generator.GetParameters(Generator.
ValueReturningLambdaExpression
("p1", Generator.IdentifierName("expr"))).Count);
3291
Assert.Equal("x", Generator.GetExpression(Generator.
ValueReturningLambdaExpression
("p", Generator.IdentifierName("x"))).ToString());
3325
Assert.Equal("y", Generator.GetExpression(Generator.WithExpression(Generator.
ValueReturningLambdaExpression
("p", Generator.IdentifierName("x")), Generator.IdentifierName("y"))).ToString());
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
109
generator.
ValueReturningLambdaExpression
(
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
714
Generator.
ValueReturningLambdaExpression
("x", Generator.IdentifierName("y")),
2850
Assert.Equal(1, Generator.GetParameters(Generator.
ValueReturningLambdaExpression
("p1", Generator.IdentifierName("expr"))).Count)
2890
Assert.Equal("x", Generator.GetExpression(Generator.
ValueReturningLambdaExpression
("p", Generator.IdentifierName("x"))).ToString())
2908
Assert.Equal("y", Generator.GetExpression(Generator.WithExpression(Generator.
ValueReturningLambdaExpression
("p", Generator.IdentifierName("x")), Generator.IdentifierName("y"))).ToString())