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

Function getTypeOfVariableOrParameterOrProperty

test/fixtures/snapshot/typescript.js:56531–56543  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

56529 }
56530 }
56531 function getTypeOfVariableOrParameterOrProperty(symbol) {
56532 var links = getSymbolLinks(symbol);
56533 if (!links.type) {
56534 var type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
56535 // For a contextually typed parameter it is possible that a type has already
56536 // been assigned (in assignTypeToParameterAndFixTypeParameters), and we want
56537 // to preserve this type.
56538 if (!links.type) {
56539 links.type = type;
56540 }
56541 }
56542 return links.type;
56543 }
56544 function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
56545 // Handle prototype property
56546 if (symbol.flags & 4194304 /* SymbolFlags.Prototype */) {

Callers 1

getTypeOfSymbolFunction · 0.85

Calls 2

getSymbolLinksFunction · 0.85

Tested by

no test coverage detected