Esempio n. 1
0
        private ComputeExpression BindComputeExpressionToken(ComputeExpressionToken token)
        {
            SingleValueNode   node       = this.bindMethod(token.Expression) as SingleValueNode;
            ComputeExpression expression = new ComputeExpression(node, token.Alias, node.TypeReference);

            return(expression);
        }
Esempio n. 2
0
        public ComputeClause BindCompute(ComputeToken token)
        {
            ExceptionUtils.CheckArgumentNotNull(token, "token");

            List <ComputeExpression> transformations = new List <ComputeExpression>();

            foreach (ComputeExpressionToken expression in token.Expressions)
            {
                ComputeExpression compute = this.BindComputeExpressionToken(expression);
                transformations.Add(compute);
            }

            return(new ComputeClause(transformations));
        }