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

Function createSymbolWithType

test/fixtures/snapshot/typescript.js:67714–67728  ·  view source on GitHub ↗
(source, type)

Source from the content-addressed store, hash-verified

67712 && !typeHasCallOrConstructSignatures(type)) || !!(ts.getObjectFlags(type) & 1024 /* ObjectFlags.ReverseMapped */ && isObjectTypeWithInferableIndex(type.source));
67713 }
67714 function createSymbolWithType(source, type) {
67715 var symbol = createSymbol(source.flags, source.escapedName, ts.getCheckFlags(source) & 8 /* CheckFlags.Readonly */);
67716 symbol.declarations = source.declarations;
67717 symbol.parent = source.parent;
67718 symbol.type = type;
67719 symbol.target = source;
67720 if (source.valueDeclaration) {
67721 symbol.valueDeclaration = source.valueDeclaration;
67722 }
67723 var nameType = getSymbolLinks(source).nameType;
67724 if (nameType) {
67725 symbol.nameType = nameType;
67726 }
67727 return symbol;
67728 }
67729 function transformTypeOfMembers(type, f) {
67730 var members = ts.createSymbolTable();
67731 for (var _i = 0, _a = getPropertiesOfObjectType(type); _i < _a.length; _i++) {

Callers 9

getUnionSignaturesFunction · 0.85
combineUnionThisParamFunction · 0.85
transformTypeOfMembersFunction · 0.85
getWidenedPropertyFunction · 0.85
getUndefinedPropertyFunction · 0.85

Calls 2

createSymbolFunction · 0.85
getSymbolLinksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…