MCPcopy Index your code
hub / github.com/nodejs/node / isSpreadableProperty

Function isSpreadableProperty

test/fixtures/snapshot/typescript.js:62992–62997  ·  view source on GitHub ↗

We approximate own properties as non-methods plus methods that are inside the object literal

(prop)

Source from the content-addressed store, hash-verified

62990 }
62991 /** We approximate own properties as non-methods plus methods that are inside the object literal */
62992 function isSpreadableProperty(prop) {
62993 var _a;
62994 return !ts.some(prop.declarations, ts.isPrivateIdentifierClassElementDeclaration) &&
62995 (!(prop.flags & (8192 /* SymbolFlags.Method */ | 32768 /* SymbolFlags.GetAccessor */ | 65536 /* SymbolFlags.SetAccessor */)) ||
62996 !((_a = prop.declarations) === null || _a === void 0 ? void 0 : _a.some(function (decl) { return ts.isClassLike(decl.parent); })));
62997 }
62998 function getSpreadSymbol(prop, readonly) {
62999 var isSetonlyAccessor = prop.flags & 65536 /* SymbolFlags.SetAccessor */ && !(prop.flags & 32768 /* SymbolFlags.GetAccessor */);
63000 if (!isSetonlyAccessor && readonly === isReadonlySymbol(prop)) {

Callers 3

getRestTypeFunction · 0.85
getAnonymousPartialTypeFunction · 0.85
getSpreadTypeFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…