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

Function getLateBoundSymbol

test/fixtures/snapshot/typescript.js:57876–57892  ·  view source on GitHub ↗

* If a symbol is the dynamic name of the member of an object type, get the late-bound * symbol of the member. * * For a description of late-binding, see `lateBindMember`.

(symbol)

Source from the content-addressed store, hash-verified

57874 * For a description of late-binding, see `lateBindMember`.
57875 */
57876 function getLateBoundSymbol(symbol) {
57877 if (symbol.flags & 106500 /* SymbolFlags.ClassMember */ && symbol.escapedName === "__computed" /* InternalSymbolName.Computed */) {
57878 var links = getSymbolLinks(symbol);
57879 if (!links.lateSymbol && ts.some(symbol.declarations, hasLateBindableName)) {
57880 // force late binding of members/exports. This will set the late-bound symbol
57881 var parent = getMergedSymbol(symbol.parent);
57882 if (ts.some(symbol.declarations, ts.hasStaticModifier)) {
57883 getExportsOfSymbol(parent);
57884 }
57885 else {
57886 getMembersOfSymbol(parent);
57887 }
57888 }
57889 return links.lateSymbol || (links.lateSymbol = symbol);
57890 }
57891 return symbol;
57892 }
57893 function getTypeWithThisArgument(type, thisArgument, needApparentType) {
57894 if (ts.getObjectFlags(type) & 4 /* ObjectFlags.Reference */) {
57895 var target = type.target;

Callers 4

resolveNameHelperFunction · 0.85
getSymbolOfNodeFunction · 0.85
getParentOfSymbolFunction · 0.85

Calls 5

getSymbolLinksFunction · 0.85
getMergedSymbolFunction · 0.85
getExportsOfSymbolFunction · 0.85
getMembersOfSymbolFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected