(args: xml.ParserEvent)
| 664 | |
| 665 | @profile |
| 666 | private buildComponent(args: xml.ParserEvent): ComponentModule { |
| 667 | if (args.prefix && args.namespace) { |
| 668 | // Custom components |
| 669 | return loadCustomComponent(args.namespace, args.elementName, args.attributes, this.context, this.currentRootView, !this.currentRootView, this.moduleName); |
| 670 | } else { |
| 671 | // Default components |
| 672 | let namespace = args.namespace; |
| 673 | if (defaultNameSpaceMatcher.test(namespace || '')) { |
| 674 | //Ignore the default ...tns.xsd namespace URL |
| 675 | namespace = undefined; |
| 676 | } |
| 677 | |
| 678 | return getComponentModule(args.elementName, namespace, args.attributes, this.context, this.moduleName, !this.currentRootView); |
| 679 | } |
| 680 | } |
| 681 | |
| 682 | public parse(args: xml.ParserEvent): XmlStateConsumer { |
| 683 | // Get the current parent. |
no test coverage detected