public void CorrectInvertTransform() { var seq = new[] {0, 1, 2, 3, 4, 5}; var handler = new SequenceHandler<int>(seq); Range range = new Range(1, 3); Assert.AreEqual(range, handler.Translate(range)); }
public AstRootNode(AstNodeBase innerExpression, bool matchBegin, bool matchEnd, Range range, IEnumerable<string> captureGroupNames) : base(range) { MatchBegin = matchBegin; MatchEnd = matchEnd; Regex = innerExpression; CaptureGroupNames = captureGroupNames.ToArray(); }
public AstConcatNode(IEnumerable<AstNodeBase> children, Range range) : base(children, range) { }
public AstOrNode(IEnumerable<AstNodeBase> arguments, Range range) : base(arguments, range) { }
protected AstCollectionNodeBase(IEnumerable<AstNodeBase> children, Range range) : base(range) { Children = children.ToArray(); }
public AstGroupNode(IEnumerable<AstNodeBase> values, QuantifierBase quantifier, Range range) : base(values, range) { Quantifier = quantifier; }