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

Method parse

packages/core/ui/builder/index.ts:344–366  ·  view source on GitHub ↗
(value: ParseInputData)

Source from the content-addressed store, hash-verified

342 }
343
344 public parse(value: ParseInputData) {
345 if (__UI_USE_XML_PARSER__) {
346 const xmlParser = new xml.XmlParser(
347 (args: xml.ParserEvent) => {
348 try {
349 this.next(args);
350 } catch (e) {
351 throw this.error(e, args.position);
352 }
353 },
354 (e, p) => {
355 throw this.error(e, p);
356 },
357 true,
358 );
359
360 if (isString(value)) {
361 xmlParser.parse(<string>value);
362 } else if (isObject(value) && isString(value.default)) {
363 xmlParser.parse(value.default);
364 }
365 }
366 }
367 }
368
369 interface ErrorFormatter {

Callers

nothing calls this directly

Calls 5

parseMethod · 0.95
isStringFunction · 0.90
isObjectFunction · 0.90
nextMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected