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

Function getSiblingsOfContext

test/fixtures/snapshot/typescript.js:67763–67780  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

67761 return { parent: parent, propertyName: propertyName, siblings: siblings, resolvedProperties: undefined };
67762 }
67763 function getSiblingsOfContext(context) {
67764 if (!context.siblings) {
67765 var siblings_1 = [];
67766 for (var _i = 0, _a = getSiblingsOfContext(context.parent); _i < _a.length; _i++) {
67767 var type = _a[_i];
67768 if (isObjectLiteralType(type)) {
67769 var prop = getPropertyOfObjectType(type, context.propertyName);
67770 if (prop) {
67771 forEachType(getTypeOfSymbol(prop), function (t) {
67772 siblings_1.push(t);
67773 });
67774 }
67775 }
67776 }
67777 context.siblings = siblings_1;
67778 }
67779 return context.siblings;
67780 }
67781 function getPropertiesOfContext(context) {
67782 if (!context.resolvedProperties) {
67783 var names = new ts.Map();

Callers 1

getPropertiesOfContextFunction · 0.85

Calls 5

isObjectLiteralTypeFunction · 0.85
getPropertyOfObjectTypeFunction · 0.85
forEachTypeFunction · 0.85
getTypeOfSymbolFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected