MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / XmlArgsReplay

Class XmlArgsReplay

packages/core/ui/builder/index.ts:447–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected