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

Function createInstantiatedSymbolTable

test/fixtures/snapshot/typescript.js:57633–57640  ·  view source on GitHub ↗
(symbols, mapper, mappingThisOnly)

Source from the content-addressed store, hash-verified

57631 // The mappingThisOnly flag indicates that the only type parameter being mapped is "this". When the flag is true,
57632 // we check symbols to see if we can quickly conclude they are free of "this" references, thus needing no instantiation.
57633 function createInstantiatedSymbolTable(symbols, mapper, mappingThisOnly) {
57634 var result = ts.createSymbolTable();
57635 for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {
57636 var symbol = symbols_2[_i];
57637 result.set(symbol.escapedName, mappingThisOnly && isThisless(symbol) ? symbol : instantiateSymbol(symbol, mapper));
57638 }
57639 return result;
57640 }
57641 function addInheritedMembers(symbols, baseSymbols) {
57642 for (var _i = 0, baseSymbols_1 = baseSymbols; _i < baseSymbols_1.length; _i++) {
57643 var s = baseSymbols_1[_i];

Callers 2

resolveObjectTypeMembersFunction · 0.85

Calls 3

isThislessFunction · 0.85
instantiateSymbolFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…