public Repeater(IEnumerable <Token <TokenType> >[] items, BlockAttribs attribs) { _index = 0; _items = items; _count = attribs.Repetitons == Each ? items.Length : attribs.Repetitons; _attribs = attribs; }
public Repeater(Block block, BlockAttribs attribs) { _block = block; _count = attribs.Repetitons == Each ? block.Items.Length : attribs.Repetitons; _attribs = attribs; }