MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / setAttribute

Function setAttribute

packages/nativescript-inspector/src/index.ts:141–145  ·  view source on GitHub ↗
(this: any, name: string, value: unknown)

Source from the content-addressed store, hash-verified

139 return safeCall(() => stringValue(this[name]) || null, null);
140 },
141 setAttribute(this: any, name: string, value: unknown): void {
142 safeCall(() => {
143 debugAttributeStore(this).set(name, stringValue(value));
144 }, undefined);
145 },
146 removeAttribute(this: any, name: string): void {
147 safeCall(() => {
148 debugAttributeStore(this).delete(name);

Callers

nothing calls this directly

Calls 4

safeCallFunction · 0.85
debugAttributeStoreFunction · 0.85
stringValueFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected