Example #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;
                }
            }
Example #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);
        }
Example #3
0
 public static bool IsMatch(InvokeOperator<Cell> checkOperation, string input)
 {
     return checkOperation.CanInvoke(CellOperationContext.Make(new TypedValue(null)),
                                                     CellOperationContext.CheckCommand,
                                                     TestUtils.CreateCell(input));
 }
 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);
 }
Example #5
0
 public override T VisitInvokeOperator(InvokeOperator node)
 {
     throw new NotImplementedException();
 }