MCPcopy Create free account
hub / github.com/microsoft/tslib / __setFunctionName

Function __setFunctionName

tslib.es6.js:106–109  ·  view source on GitHub ↗
(f, name, prefix)

Source from the content-addressed store, hash-verified

104};
105
106export function __setFunctionName(f, name, prefix) {
107 if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
108 return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
109};
110
111export function __metadata(metadataKey, metadataValue) {
112 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…