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

Function getTypeParametersFromDeclaration

test/fixtures/snapshot/typescript.js:59513–59520  ·  view source on GitHub ↗
(declaration)

Source from the content-addressed store, hash-verified

59511 // Return list of type parameters with duplicates removed (duplicate identifier errors are generated in the actual
59512 // type checking functions).
59513 function getTypeParametersFromDeclaration(declaration) {
59514 var result;
59515 for (var _i = 0, _a = ts.getEffectiveTypeParameterDeclarations(declaration); _i < _a.length; _i++) {
59516 var node = _a[_i];
59517 result = ts.appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol));
59518 }
59519 return result;
59520 }
59521 function symbolsToArray(symbols) {
59522 var result = [];
59523 symbols.forEach(function (symbol, id) {

Callers 2

Calls 1

Tested by

no test coverage detected