예제 #1
0
        internal static void NumberSum(ProcessingContext context)
        {
            StackFrame topArg = context.TopArg;

            while (topArg.basePtr <= topArg.endPtr)
            {
                NodeSequence sequence = context.PeekSequence(topArg.basePtr);
                double       val      = 0.0;
                for (int i = 0; i < sequence.Count; i++)
                {
                    NodeSequenceItem item = sequence[i];
                    val += QueryValueModel.Double(item.StringValue());
                }
                context.SetValue(context, topArg.basePtr, val);
                topArg.basePtr++;
            }
        }
예제 #2
0
 internal bool Compare(ref NodeSequenceItem item, RelationOperator op)
 {
     return(QueryValueModel.Compare(this.StringValue(), item.StringValue(), op));
 }
 internal bool Compare(ref NodeSequenceItem item, RelationOperator op)
 {
     return QueryValueModel.Compare(this.StringValue(), item.StringValue(), op);
 }