// Definitions. import { LoadOptions } from "."; import { View, ViewBase, Template, KeyedTemplate } from "../core/view"; import { ViewEntry } from "../frame"; // Types. import { debug, ScopeError, SourceError, Source } from "../../utils/debug"; import * as xml from "../../xml"; import { isString, isDefined } from "../../utils/types"; import { ComponentModule, setPropertyValue, getComponentModule } from "./component-builder"; import { platformNames, device } from "../../platform"; import { profile } from "../../profiling"; import { sanitizeModuleName } from "./module-name-sanitizer"; import { resolveModuleName } from "../../module-name-resolver"; const ios = platformNames.ios.toLowerCase(); const android = platformNames.android.toLowerCase(); const defaultNameSpaceMatcher = /tns\.xsd$/i; export function parse(value: string | Template, context: any): View { if (typeof value === "function") { return (