(args: xml.ParserEvent)
| 516 | } |
| 517 | |
| 518 | public parse(args: xml.ParserEvent): XmlStateConsumer { |
| 519 | if (args.eventType === xml.ParserEventType.StartElement) { |
| 520 | this.parseStartElement(args.prefix, args.namespace, args.elementName, args.attributes); |
| 521 | } else if (args.eventType === xml.ParserEventType.EndElement) { |
| 522 | this.parseEndElement(args.prefix, args.elementName); |
| 523 | } |
| 524 | |
| 525 | this._recordedXmlStream.push(args); |
| 526 | |
| 527 | return this._state === TemplateParser.State.FINISHED ? this.parent : this; |
| 528 | } |
| 529 | |
| 530 | public get elementName(): string { |
| 531 | return this._templateProperty.elementName; |
nothing calls this directly
no test coverage detected