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

Function __classPrivateFieldGet

tslib.es6.js:287–291  ·  view source on GitHub ↗
(receiver, state, kind, f)

Source from the content-addressed store, hash-verified

285}
286
287export function __classPrivateFieldGet(receiver, state, kind, f) {
288 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
289 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
290 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
291}
292
293export function __classPrivateFieldSet(receiver, state, value, kind, f) {
294 if (kind === "m") throw new TypeError("Private method is not writable");

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…