Exemple #1
0
        public override IProjection Visit(ConvertNode nodeIn)
        {
            var sourceNode = nodeIn.Source;

            if (!(sourceNode is ConstantNode))
            {
                return(null);
            }

            var constantNode   = (ConstantNode)sourceNode;
            var convertedValue = this.ConvertValueFromLiteralValue(nodeIn.TypeReference, constantNode.Value);
            var convertNode    = new ConstantNode(convertedValue);

            return(convertNode.Accept <IProjection>(this));
        }