Collection creates a new StatementGenerator representing a CollectionGen.
(children ...StatementGenerator)
| 385 | |
| 386 | // Collection creates a new StatementGenerator representing a CollectionGen. |
| 387 | func Collection(children ...StatementGenerator) *CollectionGen { |
| 388 | return &CollectionGen{ |
| 389 | children: copyGenerators(children), |
| 390 | localInt: new(big.Int), |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | // AddChildren implements the interface StatementGenerator. |
| 395 | func (c *CollectionGen) AddChildren(children ...StatementGenerator) error { |
no test coverage detected