4 references to MethodOrLambdaRequiresValue
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (3)
10993
resultIsUsed = (((SimpleLambdaExpressionSyntax)parent).Body != node) ||
MethodOrLambdaRequiresValue
(ContainingMemberOrLambda, Compilation);
10997
resultIsUsed = (((ParenthesizedLambdaExpressionSyntax)parent).Body != node) ||
MethodOrLambdaRequiresValue
(ContainingMemberOrLambda, Compilation);
11001
resultIsUsed = (((ArrowExpressionClauseSyntax)parent).Expression != node) ||
MethodOrLambdaRequiresValue
(ContainingMemberOrLambda, Compilation);
BoundTree\UnboundLambda.cs (1)
852
if (Binder.
MethodOrLambdaRequiresValue
(lambdaSymbol, this.Binder.Compilation))