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