コード例 #1
0
            public override void VisitInvokeOperator(InvokeOperator node)
            {
                base.VisitInvokeOperator(node);

                if (node.Function != null && !node.Function.IsMissing && _position > node.Function.TextStart)
                {
                    _binder._rowScope = null;
                }
            }
コード例 #2
0
        private void ExecuteOperation(InvokeOperator <string> executeOperator, Tree <string> input, int branchCount)
        {
            TypedValue executeResult = TypedValue.Void;

            if (executeOperator.CanInvoke(new TypedValue(new SlimInstruction()), string.Empty, input))
            {
                executeResult = executeOperator.Invoke(new TypedValue(new SlimInstruction()), string.Empty, input);
            }
            result = executeResult.GetValue <Tree <string> >();
            Assert.IsFalse(result.IsLeaf);
            Assert.AreEqual(branchCount, result.Branches.Count);
            Assert.AreEqual("step", result.Branches[0].Value);
        }
コード例 #3
0
 public static bool IsMatch(InvokeOperator<Cell> checkOperation, string input)
 {
     return checkOperation.CanInvoke(CellOperationContext.Make(new TypedValue(null)),
                                                     CellOperationContext.CheckCommand,
                                                     TestUtils.CreateCell(input));
 }
コード例 #4
0
 private void ExecuteOperation(InvokeOperator<string> executeOperator, Tree<string> input, int branchCount)
 {
     TypedValue executeResult = TypedValue.Void;
     if (executeOperator.CanInvoke(new TypedValue(new SlimInstruction()), string.Empty, input)) {
         executeResult = executeOperator.Invoke(new TypedValue(new SlimInstruction()), string.Empty, input);
     }
     result = executeResult.GetValue<Tree<string>>();
     Assert.IsFalse(result.IsLeaf);
     Assert.AreEqual(branchCount, result.Branches.Count);
     Assert.AreEqual("step", result.Branches[0].Value);
 }
コード例 #5
0
ファイル: KqlSyntaxVisitor.cs プロジェクト: tatecksi/KqlTools
 public override T VisitInvokeOperator(InvokeOperator node)
 {
     throw new NotImplementedException();
 }