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

Function getExports

packages/core/ui/builder/index.ts:268–282  ·  view source on GitHub ↗
(instance: ViewBase)

Source from the content-addressed store, hash-verified

266}
267
268export function getExports(instance: ViewBase): any {
269 const isView = !!instance._domId;
270 if (!isView) {
271 return (<any>instance).exports || instance;
272 }
273
274 let exportObject = (<any>instance).exports;
275 let parent = instance.parent;
276 while (exportObject === undefined && parent) {
277 exportObject = (<any>parent).exports;
278 parent = parent.parent;
279 }
280
281 return exportObject;
282}
283
284function parseInternal(value: string, context: any, xmlModule?: string, moduleName?: string): ComponentModule {
285 if (__UI_USE_XML_PARSER__) {

Callers 2

parseMethod · 0.85
parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected