Пример #1
0
		private int ParseEmitOperation(idScriptParser parser, int a, WindowExpressionOperationType opType, int priority, out WindowExpressionOperation op)
		{
			int b = ParseExpressionPriority(parser, priority);
			return EmitOperation(a, b, opType, out op);
		}
Пример #2
0
		private int EmitOperation(object a, int b, WindowExpressionOperationType opType, out WindowExpressionOperation op)
		{
			int i = _expressionRegisters.Count;
			_registerIsTemporary[i] = true;
			_expressionRegisters.Add(0);
			
			op = new WindowExpressionOperation();
			op.Type = opType;
			op.A = a;
			op.B = b;
			op.C = i;

			_ops.Add(op);

			return op.C;
		}