Boo.Lang.Compiler.Steps.ExpandDuckTypedExpressions.GetArrayForIndices C# (CSharp) Метод

GetArrayForIndices() приватный Метод

private GetArrayForIndices ( Boo.Lang.Compiler.Ast.SlicingExpression node ) : Boo.Lang.Compiler.Ast.ArrayLiteralExpression
node Boo.Lang.Compiler.Ast.SlicingExpression
Результат Boo.Lang.Compiler.Ast.ArrayLiteralExpression
        private ArrayLiteralExpression GetArrayForIndices(SlicingExpression node)
        {
            ArrayLiteralExpression args = new ArrayLiteralExpression();
            foreach (Slice index in node.Indices)
            {
                if (AstUtil.IsComplexSlice(index))
                {
                    throw CompilerErrorFactory.NotImplemented(index, "complex slice for duck");
                }
                args.Items.Add(index.Begin);
            }
            BindExpressionType(args, TypeSystemServices.ObjectArrayType);
            return args;
        }