Exemplo n.º 1
0
 ImmutableArray <BoundArgument> BindLambdaUseArguments(IEnumerable <AST.FormalParam> usevars)
 {
     return(usevars.Select(v =>
     {
         var varuse = new AST.DirectVarUse(v.Name.Span, v.Name.Name);
         return BindExpression(varuse, v.PassedByRef ? BoundAccess.ReadRef : BoundAccess.Read);
     })
            .Select(expr => new BoundArgument(expr))
            .ToImmutableArray());
 }