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

Function getTypeOfParameter

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

Source from the content-addressed store, hash-verified

77463 return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType;
77464 }
77465 function getTypeOfParameter(symbol) {
77466 var type = getTypeOfSymbol(symbol);
77467 if (strictNullChecks) {
77468 var declaration = symbol.valueDeclaration;
77469 if (declaration && ts.hasInitializer(declaration)) {
77470 return getOptionalType(type);
77471 }
77472 }
77473 return type;
77474 }
77475 function getTupleElementLabel(d) {
77476 ts.Debug.assert(ts.isIdentifier(d.name)); // Parameter declarations could be binding patterns, but we only allow identifier names
77477 return d.name.escapedText;

Callers 3

isMixinConstructorTypeFunction · 0.85
isAnySignatureFunction · 0.85
tryGetTypeAtPositionFunction · 0.85

Calls 2

getTypeOfSymbolFunction · 0.85
getOptionalTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…