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

Function setup

apps/ui/src/perf/properties/tests.ts:285–294  ·  view source on GitHub ↗
(parent?: LayoutBase)

Source from the content-addressed store, hash-verified

283}
284
285function setup(parent?: LayoutBase): Label {
286 let lbl = new Label();
287 if (parent) {
288 parent.addChild(lbl);
289 } else {
290 (<any>lbl)._ios = (<any>lbl).nativeView = undefined;
291 }
292
293 return lbl;
294}
295
296function time(): number {
297 if (global.android) {

Callers 14

setTextFunction · 0.70
setBackgroundColorFunction · 0.70
setBorderWidthsFunction · 0.70
setColorFunction · 0.70
setFontSizeFunction · 0.70
setFontWeightFunction · 0.70
setBindingContextFunction · 0.70
executeSnippetMethod · 0.50
testFunction · 0.50
executeSnippetMethod · 0.50
executeSnippetMethod · 0.50
requestLayoutFixtureMethod · 0.50

Calls 1

addChildMethod · 0.45

Tested by 1

testFunction · 0.40