protected override BoundBlock BindLambdaBody(LambdaSymbol lambdaSymbol, ref Binder lambdaBodyBinder, DiagnosticBag diagnostics) { if (this.IsExpressionLambda) { var body = (ExpressionSyntax)this.Body; return(lambdaBodyBinder.BindLambdaExpressionAsBlock(body, diagnostics)); } else { return(lambdaBodyBinder.BindBlock((BlockSyntax)this.Body, diagnostics)); } }
protected override BoundBlock BindLambdaBody(LambdaSymbol lambdaSymbol, ref Binder lambdaBodyBinder, DiagnosticBag diagnostics) { if (this.IsExpressionLambda) { var body = (ExpressionSyntax)this.Body; return lambdaBodyBinder.BindLambdaExpressionAsBlock(body, diagnostics); } else { return lambdaBodyBinder.BindBlock((BlockSyntax)this.Body, diagnostics); } }