| 445 | } |
| 446 | |
| 447 | export class XmlArgsReplay extends XmlProducerBase implements XmlProducer { |
| 448 | private error: ErrorFormatter; |
| 449 | private args: xml.ParserEvent[]; |
| 450 | |
| 451 | constructor(args: xml.ParserEvent[], errorFormat: ErrorFormatter) { |
| 452 | super(); |
| 453 | this.args = args; |
| 454 | this.error = errorFormat; |
| 455 | } |
| 456 | |
| 457 | public replay() { |
| 458 | this.args.forEach((args: xml.ParserEvent) => { |
| 459 | try { |
| 460 | this.next(args); |
| 461 | } catch (e) { |
| 462 | throw this.error(e, args.position); |
| 463 | } |
| 464 | }); |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | interface TemplateProperty { |
| 469 | context?: any; |
nothing calls this directly
no outgoing calls
no test coverage detected