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

Method buildComponent

packages/core/ui/builder/index.ts:666–680  ·  view source on GitHub ↗
(args: xml.ParserEvent)

Source from the content-addressed store, hash-verified

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.

Callers 1

parseMethod · 0.95

Calls 3

getComponentModuleFunction · 0.90
loadCustomComponentFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected