MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Method constructor

packages/core/ui/builder/index.ts:508–516  ·  view source on GitHub ↗
(parent: XmlStateConsumer, templateProperty: TemplateProperty, setTemplateProperty = true)

Source from the content-addressed store, hash-verified

506 private _setTemplateProperty: boolean;
507
508 constructor(parent: XmlStateConsumer, templateProperty: TemplateProperty, setTemplateProperty = true) {
509 this.parent = parent;
510 this._context = templateProperty.context;
511 this._recordedXmlStream = new Array<xml.ParserEvent>();
512 this._templateProperty = templateProperty;
513 this._nestingLevel = 0;
514 this._state = TemplateParser.State.EXPECTING_START;
515 this._setTemplateProperty = setTemplateProperty;
516 }
517
518 public parse(args: xml.ParserEvent): XmlStateConsumer {
519 if (args.eventType === xml.ParserEventType.StartElement) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected