示例#1
0
 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));
     }
 }
示例#2
0
 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);
     }
 }