public override void VisitInvokeOperator(InvokeOperator node) { base.VisitInvokeOperator(node); if (node.Function != null && !node.Function.IsMissing && _position > node.Function.TextStart) { _binder._rowScope = null; } }
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); }
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); }
public override T VisitInvokeOperator(InvokeOperator node) { throw new NotImplementedException(); }