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

Function getEffectiveBaseTypeNode

test/fixtures/snapshot/typescript.js:17344–17354  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

17342 }
17343 ts.getPropertyAssignmentAliasLikeExpression = getPropertyAssignmentAliasLikeExpression;
17344 function getEffectiveBaseTypeNode(node) {
17345 var baseType = getClassExtendsHeritageElement(node);
17346 if (baseType && isInJSFile(node)) {
17347 // Prefer an @augments tag because it may have type parameters.
17348 var tag = ts.getJSDocAugmentsTag(node);
17349 if (tag) {
17350 return tag.class;
17351 }
17352 }
17353 return baseType;
17354 }
17355 ts.getEffectiveBaseTypeNode = getEffectiveBaseTypeNode;
17356 function getClassExtendsHeritageElement(node) {
17357 var heritageClause = getHeritageClause(node.heritageClauses, 94 /* SyntaxKind.ExtendsKeyword */);

Callers 1

getAllSuperTypeNodesFunction · 0.85

Calls 2

isInJSFileFunction · 0.85

Tested by

no test coverage detected